aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast-tokenstream.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-03-29 13:35:53 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-03-30 16:52:24 +0000
commit1ef39479434ce54879e46926d1ac1c12009c5c07 (patch)
tree7e317d9daab85ca97416f1f752ad74f91493566a /gcc/rust/ast/rust-ast-tokenstream.cc
parent3cc5c9360c9454f7aa20717b6cfcc7085836233b (diff)
downloadgcc-1ef39479434ce54879e46926d1ac1c12009c5c07.zip
gcc-1ef39479434ce54879e46926d1ac1c12009c5c07.tar.gz
gcc-1ef39479434ce54879e46926d1ac1c12009c5c07.tar.bz2
gccrs: Fix handling of generic arguments for lifetimes only
We might have generics that are only for lifetimes this is a bad error check. We can simply rely on the function to marshall the HIR generics arguements for the type system to do the error handling for us which will be more acurate anyway. Fixes #2043 #2039 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveTraitItems::visit): add check for reference marker and type's in self params (ResolveItem::visit): likewise * typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_root_path): remove bad generics check (TypeCheckExpr::resolve_segments): likewise * typecheck/rust-hir-type-check-type.cc (TypeCheckType::resolve_root_path): likewise gcc/testsuite/ChangeLog: * rust/compile/const_generics_5.rs: update test case * rust/compile/issue-2043.rs: New test. * rust/compile/issue-2039.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-tokenstream.cc')
0 files changed, 0 insertions, 0 deletions