Process macro_use prelude in semantic scope resolver

This commit is contained in:
Ryo Yoshida 2023-05-17 17:45:44 +09:00
parent 2f8cd66fb4
commit 68a74decb6
No known key found for this signature in database
GPG key ID: E25698A930586171
4 changed files with 32 additions and 4 deletions

View file

@ -183,7 +183,7 @@ fn find_path_for_module(
// - if the item is the crate root of a dependency crate, return the name from the extern prelude
let root_def_map = crate_root.def_map(db);
for (name, &def_id) in root_def_map.extern_prelude() {
for (name, def_id) in root_def_map.extern_prelude() {
if module_id == def_id {
let name = scope_name.unwrap_or_else(|| name.clone());