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 86995dc commit 32674b3Copy full SHA for 32674b3
src/librustc_resolve/lib.rs
@@ -1276,16 +1276,17 @@ impl<'a> Resolver<'a> {
1276
self.used_crates.insert(krate);
1277
}
1278
1279
- if let NameBindingKind::Import { directive, .. } = binding.kind {
1280
- self.used_imports.insert((directive.id, ns));
1281
- self.add_to_glob_map(directive.id, name);
1282
- }
1283
-
1284
if binding.ambiguity().is_some() {
1285
self.ambiguity_errors.push((span, name, binding));
1286
return true;
1287
1288
+ if let NameBindingKind::Import { directive, binding } = binding.kind {
+ self.used_imports.insert((directive.id, ns));
+ self.add_to_glob_map(directive.id, name);
+ self.record_use(name, ns, binding, span);
+ }
1289
+
1290
false
1291
1292
0 commit comments