Skip to content

Commit b75a338

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-def/src/resolver.rs

Lines changed: 1 addition & 1 deletion
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)