We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb3d87 commit bc2d172Copy full SHA for bc2d172
crates/ra_hir_def/src/import_map.rs
@@ -78,7 +78,9 @@ impl ImportMap {
78
}
79
80
81
- // If we've just added a path to a module, descend into it.
+ // If we've just added a path to a module, descend into it. We might traverse
82
+ // modules multiple times, but only if the new path to it is shorter than the
83
+ // first (else we `continue` above).
84
if let Some(ModuleDefId::ModuleId(mod_id)) = item.as_module_def_id() {
85
worklist.push((mod_id, mk_path()));
86
0 commit comments