mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
Remove a duplicate line in collect_defs
Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
This commit is contained in:
parent
4516c4c144
commit
84e2e173ee
1 changed files with 0 additions and 1 deletions
|
@ -45,7 +45,6 @@ pub(super) fn collect_defs(db: &impl DefDatabase, mut def_map: CrateDefMap) -> C
|
||||||
// If the dependency defines a prelude, we overwrite an already defined
|
// If the dependency defines a prelude, we overwrite an already defined
|
||||||
// prelude. This is necessary to import the "std" prelude if a crate
|
// prelude. This is necessary to import the "std" prelude if a crate
|
||||||
// depends on both "core" and "std".
|
// depends on both "core" and "std".
|
||||||
let dep_def_map = db.crate_def_map(dep.crate_id);
|
|
||||||
if dep_def_map.prelude.is_some() {
|
if dep_def_map.prelude.is_some() {
|
||||||
def_map.prelude = dep_def_map.prelude;
|
def_map.prelude = dep_def_map.prelude;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue