diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-04-03 16:32:36 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2025-04-04 09:44:59 +0000 |
commit | 641f9a406118761f4399dc6e0636b2617bf90599 (patch) | |
tree | 944326a62a0f78cbeb5ea6e919322de84a2bc9ab /gcc/rust/ast/rust-expr.h | |
parent | 861dcf6f8f7b2e50f8dcbe59338cac8cac8efd26 (diff) | |
download | gcc-641f9a406118761f4399dc6e0636b2617bf90599.zip gcc-641f9a406118761f4399dc6e0636b2617bf90599.tar.gz gcc-641f9a406118761f4399dc6e0636b2617bf90599.tar.bz2 |
gccrs: Fix ICE for reserved lifetime name
This is a reserved name so this changes the assertion to a diagnostic.
Fixes Rust-GCC#3647
gcc/rust/ChangeLog:
* typecheck/rust-typecheck-context.cc (TypeCheckContext::lookup_lifetime): emit error
gcc/testsuite/ChangeLog:
* rust/compile/issue-3647.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
0 files changed, 0 insertions, 0 deletions