Skip to content

Commit 5583ebc

Browse files
committed
WIP 4: glob glob_importers
1 parent 68c6a7f commit 5583ebc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_resolve/src/imports.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,9 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
963963
unreachable!()
964964
};
965965

966+
// Add to module's glob_importers
967+
module.glob_importers.borrow_mut().push(import);
968+
966969
for (key, imported_binding, warn_ambiguity) in imported_bindings {
967970
let _ = self.try_define_local(
968971
import.parent_scope.module,
@@ -1542,9 +1545,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
15421545
return None;
15431546
}
15441547

1545-
// Add to module's glob_importers
1546-
module.glob_importers.borrow_mut().push(import);
1547-
15481548
// Ensure that `resolutions` isn't borrowed during `try_define`,
15491549
// since it might get updated via a glob cycle.
15501550
let bindings = self

0 commit comments

Comments
 (0)