public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] gccrs: cleanup resolve method address
@ 2023-04-06 21:37 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-04-06 21:37 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b9fc7b51a46192a30f445bbca7b1dd857fa0c856
commit b9fc7b51a46192a30f445bbca7b1dd857fa0c856
Author: Philip Herron <herron.philip@googlemail.com>
Date: Tue Apr 4 15:24:01 2023 +0100
gccrs: cleanup resolve method address
Calling PathProbeImplTrait resolves directly to the trait bound in question
to stop resolving to potentially multiple implementations of that bound
gcc/rust/ChangeLog:
* backend/rust-compile-expr.cc (CompileExpr::resolve_method_address):
call path probe impl trait
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diff:
---
gcc/rust/backend/rust-compile-expr.cc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc
index 904c47b86be..90f1b14cb38 100644
--- a/gcc/rust/backend/rust-compile-expr.cc
+++ b/gcc/rust/backend/rust-compile-expr.cc
@@ -1919,9 +1919,7 @@ CompileExpr::resolve_method_address (TyTy::FnType *fntype, HirId ref,
auto root = receiver->get_root ();
auto candidates
- = Resolver::PathProbeType::Probe (root, segment, true /* probe_impls */,
- false /* probe_bounds */,
- true /* ignore_mandatory_trait_items */);
+ = Resolver::PathProbeImplTrait::Probe (root, segment, trait_ref);
if (candidates.size () == 0)
{
// this means we are defaulting back to the trait_item if
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-06 21:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 21:37 [gcc/devel/rust/master] gccrs: cleanup resolve method address Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).