fix: do not resolve prelude within block modules
This commit is contained in:
parent
845754af9c
commit
6561b71eed
1 changed files with 6 additions and 1 deletions
|
|
@ -493,7 +493,12 @@ impl DefMap {
|
|||
)
|
||||
})
|
||||
};
|
||||
let prelude = || self.resolve_in_prelude(db, name);
|
||||
let prelude = || {
|
||||
if self.block.is_some() && module == DefMap::ROOT {
|
||||
return PerNs::none();
|
||||
}
|
||||
self.resolve_in_prelude(db, name)
|
||||
};
|
||||
|
||||
from_legacy_macro
|
||||
.or(from_scope_or_builtin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue