diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-04-04 15:40:26 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:46 +0100 |
commit | df46f9ee7c7c42449c015417aa1f470da4ca7267 (patch) | |
tree | 98fb4cc297c36be7b01c9ec39e261387fcfef4d8 /gcc/rust/hir/tree/rust-hir-expr.h | |
parent | 408e9c03105b942f0f7abebe916e35c0a9fefaa7 (diff) | |
download | gcc-df46f9ee7c7c42449c015417aa1f470da4ca7267.zip gcc-df46f9ee7c7c42449c015417aa1f470da4ca7267.tar.gz gcc-df46f9ee7c7c42449c015417aa1f470da4ca7267.tar.bz2 |
gccrs: Support fully qualified calls to trait items from CallExpr's
Fixes #2070
gcc/rust/ChangeLog:
* backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile):
reuse resolve_method_address to monomorphize the call if required
* typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_segments):
allow matching against unimplemented trait item bounds
gcc/testsuite/ChangeLog:
* rust/compile/issue-2070.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir-expr.h')
0 files changed, 0 insertions, 0 deletions