aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-03-20 09:04:01 +0000
committerKirill Bulatov <[email protected]>2021-03-20 20:18:43 +0000
commit81961dc035106dcfd29b894aae339261a0ba037b (patch)
treee6c303055fbe5c1c9de50cbc93c6469a2996a93e /crates/hir_ty
parent104a19853e0d5560a21e6c6a31961ca592be1032 (diff)
Do not propose assoc items without qualifiers
Diffstat (limited to 'crates/hir_ty')
-rw-r--r--crates/hir_ty/src/autoderef.rs1
1 files changed, 1 insertions, 0 deletions
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>(
27 krate: Option<CrateId>, 27 krate: Option<CrateId>,
28 ty: InEnvironment<Canonical<Ty>>, 28 ty: InEnvironment<Canonical<Ty>>,
29) -> impl Iterator<Item = Canonical<Ty>> + 'a { 29) -> impl Iterator<Item = Canonical<Ty>> + 'a {
30 // from_chalk
30 let InEnvironment { value: ty, environment } = ty; 31 let InEnvironment { value: ty, environment } = ty;
31 successors(Some(ty), move |ty| { 32 successors(Some(ty), move |ty| {
32 deref(db, krate?, InEnvironment { value: ty, environment: environment.clone() }) 33 deref(db, krate?, InEnvironment { value: ty, environment: environment.clone() })