Skip to content

Commit a2b9d5c

Browse files
HmikihiroVeykril
andauthored
Update crates/hir-def/src/resolver.rs
Co-authored-by: Lukas Wirth <[email protected]>
1 parent 653afb9 commit a2b9d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-def/src/resolver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl Resolver {
247247
Scope::BlockScope(m) => {
248248
if let Some(res) = m.resolve_path_in_type_ns(db, path) {
249249
let res = match res.0 {
250-
TypeNs::ModuleId(_) => {
250+
TypeNs::ModuleId(_) if res.1.is_none() => {
251251
if let Some(ModuleDefId::BuiltinType(builtin)) = BUILTIN_SCOPE
252252
.get(first_name)
253253
.and_then(|builtin| builtin.take_types())

0 commit comments

Comments
 (0)