We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf2dce commit 43f6b96Copy full SHA for 43f6b96
src/librustc_resolve/lib.rs
@@ -3322,7 +3322,9 @@ impl<'a> Resolver<'a> {
3322
.map(MacroBinding::binding)
3323
} else {
3324
match self.resolve_ident_in_lexical_scope(ident, ns, record_used, path_span) {
3325
+ // we found a locally-imported or available item/module
3326
Some(LexicalScopeBinding::Item(binding)) => Ok(binding),
3327
+ // we found a local variable or type param
3328
Some(LexicalScopeBinding::Def(def))
3329
if opt_ns == Some(TypeNS) || opt_ns == Some(ValueNS) => {
3330
return PathResult::NonModule(PathResolution::with_unresolved_segments(
0 commit comments