diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-04-20 17:10:15 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:34:15 +0100 |
commit | 04877f1096b9afe9d27552ffd0cc76388bbc6c03 (patch) | |
tree | e11e0fdcd66d1ed60604d5a6420ce03bdbdd2bc3 /gcc/rust/Make-lang.in | |
parent | 0a0b51c5dc0453df4876cbd9c4e528d1faaf37ed (diff) | |
download | gcc-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