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 ea0dc92 commit 232783cCopy full SHA for 232783c
src/librustc_resolve/lib.rs
@@ -3194,7 +3194,9 @@ impl<'a> Resolver<'a> {
3194
if !in_module_is_extern || name_binding.vis == ty::Visibility::Public {
3195
// add the module to the lookup
3196
let is_extern = in_module_is_extern || name_binding.is_extern_crate();
3197
- worklist.push((module, path_segments, is_extern));
+ if !worklist.iter().any(|&(m, _, _)| m.def == module.def) {
3198
+ worklist.push((module, path_segments, is_extern));
3199
+ }
3200
}
3201
3202
})
0 commit comments