diff options
| author | r0cky <mu001999@outlook.com> | 2023-12-06 21:48:19 +0800 |
|---|---|---|
| committer | r0cky <mu001999@outlook.com> | 2023-12-06 21:48:19 +0800 |
| commit | 940473adb423cc5e1d77a4d3cffeb617283e337c (patch) | |
| tree | b243cf55fbcf79800ad55fe796252373b403bfa5 /compiler/rustc_resolve/src | |
| parent | dd6126ef5625299870f5fec4d14a605acddc81eb (diff) | |
| download | rust-940473adb423cc5e1d77a4d3cffeb617283e337c.tar.gz rust-940473adb423cc5e1d77a4d3cffeb617283e337c.zip | |
Use the glob binding in resolve_rustdoc_path process
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/imports.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs index b28ad671f12..c2306e3ea7d 100644 --- a/compiler/rustc_resolve/src/imports.rs +++ b/compiler/rustc_resolve/src/imports.rs @@ -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() { |
