mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
assign DefIds when lowering
This commit is contained in:
parent
118e11e50b
commit
59f830d3e8
4 changed files with 99 additions and 107 deletions
|
@ -146,9 +146,10 @@ pub fn macro_symbols(db: &impl HirDatabase, file_id: FileId) -> Vec<(SmolStr, Te
|
|||
let mut res = Vec::new();
|
||||
|
||||
for macro_call_id in items
|
||||
.items
|
||||
.declarations
|
||||
.iter()
|
||||
.filter_map(|it| it.id.file_id.as_macro_call_id())
|
||||
.filter_map(|(_, it)| it.take_types())
|
||||
.filter_map(|it| it.loc(db).source_item_id.file_id.as_macro_call_id())
|
||||
{
|
||||
if let Some(exp) = db.expand_macro_invocation(macro_call_id) {
|
||||
let loc = macro_call_id.loc(db);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue