diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-05-30 13:45:58 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:37:22 +0100 |
commit | 56e29f4d5de8134db5f7772adc13154f3efccf43 (patch) | |
tree | ddd86d2a368468da6dd9148eb209ba94047bbdca /gcc/rust/rust-session-manager.cc | |
parent | 546fbc6289b43ed59fc18d353084faf53c5bcced (diff) | |
download | gcc-56e29f4d5de8134db5f7772adc13154f3efccf43.zip gcc-56e29f4d5de8134db5f7772adc13154f3efccf43.tar.gz gcc-56e29f4d5de8134db5f7772adc13154f3efccf43.tar.bz2 |
gccrs: Add missing name resolution to item statements
This fixes the issue but there are two cleanups to do at some point.
1. misc namesapce this is a scope AST namespace where we dump resolution
info when its not defined here. This occurs in the case such as nested
scopes where the nested scope is popped and we hit an assertion.
Outside of name resolution this requirement shouldnt really apply
it should be permissive to allow for this
2. We reuse our existing name resolution pieces here for Traits and impl
blocks we should start doing this for the other statements.
Fixes #2238
gcc/rust/ChangeLog:
* resolve/rust-ast-resolve-stmt.cc (ResolveStmt::visit): add name resolution
* resolve/rust-ast-resolve-stmt.h: likewise
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): insert resolved node
gcc/testsuite/ChangeLog:
* rust/compile/issue-2238.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
0 files changed, 0 insertions, 0 deletions