From 81961dc035106dcfd29b894aae339261a0ba037b Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 20 Mar 2021 11:04:01 +0200 Subject: Do not propose assoc items without qualifiers --- crates/hir_ty/src/autoderef.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/hir_ty') diff --git a/crates/hir_ty/src/autoderef.rs b/crates/hir_ty/src/autoderef.rs index 23ab042c1..0b8ac455b 100644 --- a/crates/hir_ty/src/autoderef.rs +++ b/crates/hir_ty/src/autoderef.rs @@ -27,6 +27,7 @@ pub fn autoderef<'a>( krate: Option, ty: InEnvironment>, ) -> impl Iterator> + 'a { + // from_chalk let InEnvironment { value: ty, environment } = ty; successors(Some(ty), move |ty| { deref(db, krate?, InEnvironment { value: ty, environment: environment.clone() }) -- cgit v1.2.3