From 9c2a9a9a0635e53466749fdedcdc5a371e658cde Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Fri, 15 Nov 2019 21:00:27 +0100 Subject: Use Chalk's dyn/impl trait support --- crates/ra_hir/src/ty/method_resolution.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crates/ra_hir/src/ty/method_resolution.rs') diff --git a/crates/ra_hir/src/ty/method_resolution.rs b/crates/ra_hir/src/ty/method_resolution.rs index 9aad2d3fe..d20aeaacf 100644 --- a/crates/ra_hir/src/ty/method_resolution.rs +++ b/crates/ra_hir/src/ty/method_resolution.rs @@ -228,14 +228,10 @@ fn iterate_trait_method_candidates( 'traits: for t in traits { let data = t.trait_data(db); - // FIXME this is a bit of a hack, since Chalk should say the same thing - // anyway, but currently Chalk doesn't implement `dyn/impl Trait` yet - let inherently_implemented = ty.value.inherent_trait() == Some(t); - // we'll be lazy about checking whether the type implements the // trait, but if we find out it doesn't, we'll skip the rest of the // iteration - let mut known_implemented = inherently_implemented; + let mut known_implemented = false; for &item in data.items() { if !is_valid_candidate(db, name, mode, item) { continue; -- cgit v1.2.3