diff options
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 8a22b0585..35b852ee2 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -45,7 +45,6 @@ pub(super) fn collect_defs(db: &impl DefDatabase, mut def_map: CrateDefMap) -> C | |||
45 | // If the dependency defines a prelude, we overwrite an already defined | 45 | // If the dependency defines a prelude, we overwrite an already defined |
46 | // prelude. This is necessary to import the "std" prelude if a crate | 46 | // prelude. This is necessary to import the "std" prelude if a crate |
47 | // depends on both "core" and "std". | 47 | // depends on both "core" and "std". |
48 | let dep_def_map = db.crate_def_map(dep.crate_id); | ||
49 | if dep_def_map.prelude.is_some() { | 48 | if dep_def_map.prelude.is_some() { |
50 | def_map.prelude = dep_def_map.prelude; | 49 | def_map.prelude = dep_def_map.prelude; |
51 | } | 50 | } |