mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Thread imports through the resolver
This commit is contained in:
parent
c4e9b5ac64
commit
a17d73ad36
15 changed files with 218 additions and 131 deletions
|
@ -606,7 +606,7 @@ impl<'db> SemanticsImpl<'db> {
|
|||
let macro_call_id = macro_call.as_call_id(self.db.upcast(), krate, |path| {
|
||||
resolver
|
||||
.resolve_path_as_macro(self.db.upcast(), &path, Some(MacroSubNs::Bang))
|
||||
.map(|it| macro_id_to_def_id(self.db.upcast(), it))
|
||||
.map(|(it, _)| macro_id_to_def_id(self.db.upcast(), it))
|
||||
})?;
|
||||
hir_expand::db::expand_speculative(
|
||||
self.db.upcast(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue