Skip to content

Commit

Permalink
Using the glob binding in resolve_rustdoc_path process
Browse files Browse the repository at this point in the history
  • Loading branch information
mu001999 committed Nov 15, 2023
1 parent cc8681b commit f4aec22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_resolve/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
self.per_ns(|this, ns| {
let key = BindingKey::new(target, ns);
let _ = this.try_define(import.parent_scope.module, key, dummy_binding, false);
this.update_resolution(import.parent_scope.module, key, false, |_, resolution| {
resolution.single_imports.remove(&import);
})
});
self.record_use(target, dummy_binding, false);
} else if import.imported_module.get().is_none() {
Expand Down

0 comments on commit f4aec22

Please sign in to comment.