diff options
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index 904c47b..90f1b14 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 |