aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-builtins.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-05-31 16:06:58 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-06-06 23:36:56 +0000
commit12d79b13fc314b349a727b2ab15d4d06270f3496 (patch)
tree1f7099a14c44c5047ecb9fb464f22e33c0cf68cb /gcc/rust/expand/rust-macro-builtins.cc
parent1b322540fa0fce561cf86e371dd7f304f1343511 (diff)
downloadgcc-12d79b13fc314b349a727b2ab15d4d06270f3496.zip
gcc-12d79b13fc314b349a727b2ab15d4d06270f3496.tar.gz
gcc-12d79b13fc314b349a727b2ab15d4d06270f3496.tar.bz2
gccrs: Respect the concrete type when resolving qualifed path types
Concrete types can resolve to assoicated impl blocks which will allow us to resolve the path to the projection type instead of the placeholder trait associated type which can change. The projection will be fixed and is safer to use. Fixes #2165 #2166 gcc/rust/ChangeLog: * typecheck/rust-hir-trait-resolve.cc: when the bound is concrete keep the mapping * typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::visit): add missing call * typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit): make this the same as paths gcc/testsuite/ChangeLog: * rust/compile/issue-2165.rs: New test. * rust/compile/issue-2166.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins.cc')
0 files changed, 0 insertions, 0 deletions