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 a458b7d commit b6cf8f2Copy full SHA for b6cf8f2
src/tools/rust-analyzer/crates/hir-def/src/resolver.rs
@@ -247,7 +247,7 @@ impl Resolver {
247
Scope::BlockScope(m) => {
248
if let Some(res) = m.resolve_path_in_type_ns(db, path) {
249
let res = match res.0 {
250
- TypeNs::ModuleId(_) => {
+ TypeNs::ModuleId(_) if res.1.is_none() => {
251
if let Some(ModuleDefId::BuiltinType(builtin)) = BUILTIN_SCOPE
252
.get(first_name)
253
.and_then(|builtin| builtin.take_types())
0 commit comments