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>
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