aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r--crates/hir_def/src/resolver.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir_def/src/resolver.rs b/crates/hir_def/src/resolver.rs
index cc66dcf31..779754ada 100644
--- a/crates/hir_def/src/resolver.rs
+++ b/crates/hir_def/src/resolver.rs
@@ -510,8 +510,9 @@ impl Scope {
510 if let Some(prelude) = m.crate_def_map.prelude { 510 if let Some(prelude) = m.crate_def_map.prelude {
511 let prelude_def_map = db.crate_def_map(prelude.krate); 511 let prelude_def_map = db.crate_def_map(prelude.krate);
512 prelude_def_map[prelude.local_id].scope.entries().for_each(|(name, def)| { 512 prelude_def_map[prelude.local_id].scope.entries().for_each(|(name, def)| {
513 if !seen.contains(&(name.clone(), def)) { 513 let seen_tuple = (name.clone(), def);
514 f(name.clone(), ScopeDef::PerNs(def)); 514 if !seen.contains(&seen_tuple) {
515 f(seen_tuple.0, ScopeDef::PerNs(def));
515 } 516 }
516 }); 517 });
517 } 518 }