mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Fix expand macro
This commit is contained in:
parent
b568bcfe6d
commit
0a9c80053f
3 changed files with 16 additions and 9 deletions
|
@ -55,7 +55,7 @@ pub(crate) fn descend_into_macros(
|
|||
}
|
||||
let source_analyzer =
|
||||
hir::SourceAnalyzer::new(db, token.with_value(token.value.parent()).as_ref(), None);
|
||||
let exp = source_analyzer.expand(db, ¯o_call)?;
|
||||
let exp = source_analyzer.expand(db, token.with_value(¯o_call))?;
|
||||
exp.map_token_down(db, token.as_ref())
|
||||
})
|
||||
.last()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue