Skip to content

Commit f4aec22

Browse files
committed
Using the glob binding in resolve_rustdoc_path process
1 parent cc8681b commit f4aec22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_resolve/src/imports.rs

+3
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
477477
self.per_ns(|this, ns| {
478478
let key = BindingKey::new(target, ns);
479479
let _ = this.try_define(import.parent_scope.module, key, dummy_binding, false);
480+
this.update_resolution(import.parent_scope.module, key, false, |_, resolution| {
481+
resolution.single_imports.remove(&import);
482+
})
480483
});
481484
self.record_use(target, dummy_binding, false);
482485
} else if import.imported_module.get().is_none() {

0 commit comments

Comments
 (0)