mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Auto merge of #17462 - Veykril:sema-attr-macro-res, r=Veykril
fix: Fix IDE features breaking in some attr macros Fixes https://github.com/rust-lang/rust-analyzer/issues/17453, Fixes https://github.com/rust-lang/rust-analyzer/issues/17458
This commit is contained in:
commit
e08f7953f4
3 changed files with 6 additions and 6 deletions
|
@ -434,7 +434,7 @@ impl SourceToDefCtx<'_, '_> {
|
|||
.entry(macro_file)
|
||||
.or_insert_with(|| macro_file.expansion_info(this.db.upcast()));
|
||||
|
||||
expansion_info.call_node().map(|node| node?.parent()).transpose()
|
||||
expansion_info.arg().map(|node| node?.parent()).transpose()
|
||||
}
|
||||
};
|
||||
let mut node = node.cloned();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue