aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-04-20 17:10:15 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:34:15 +0100
commit04877f1096b9afe9d27552ffd0cc76388bbc6c03 (patch)
treee11e0fdcd66d1ed60604d5a6420ce03bdbdd2bc3 /gcc/rust/Make-lang.in
parent0a0b51c5dc0453df4876cbd9c4e528d1faaf37ed (diff)
downloadgcc-04877f1096b9afe9d27552ffd0cc76388bbc6c03.zip
gcc-04877f1096b9afe9d27552ffd0cc76388bbc6c03.tar.gz
gcc-04877f1096b9afe9d27552ffd0cc76388bbc6c03.tar.bz2
gccrs: qualified path syntax is used to disambiguate predicates
When resolving a qualified path we need to use the predicate to lookup the relevant assoicated impl block where possible. The issue here is that it might not have one due to a valid error in the impl block or it might be used within a trait this is a valid case. Generally we will be able to resolve to an impl block then it can grab that type and move on. Fixes #2135 gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::visit): use the predicate (TypeCheckExpr::resolve_segments): cleanup gcc/testsuite/ChangeLog: * rust/compile/issue-2135.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions