mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 10:39:45 +00:00
Update crates/hir-def/src/resolver.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
1b471ebfd5
commit
b75a3388f1
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ impl Resolver {
|
|||
Scope::BlockScope(m) => {
|
||||
if let Some(res) = m.resolve_path_in_type_ns(db, path) {
|
||||
let res = match res.0 {
|
||||
TypeNs::ModuleId(_) => {
|
||||
TypeNs::ModuleId(_) if res.1.is_none() => {
|
||||
if let Some(ModuleDefId::BuiltinType(builtin)) = BUILTIN_SCOPE
|
||||
.get(first_name)
|
||||
.and_then(|builtin| builtin.take_types())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue