We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 653afb9 commit a2b9d5cCopy full SHA for a2b9d5c
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