mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
fix: When reference searching macro inputs, don't search everything that was downmapped
This commit is contained in:
parent
038a71a201
commit
ad537be194
3 changed files with 15 additions and 8 deletions
|
@ -122,7 +122,7 @@ pub(crate) fn find_defs<'a>(
|
|||
)
|
||||
});
|
||||
token.map(|token| {
|
||||
sema.descend_into_macros_with_same_kind(token)
|
||||
sema.descend_into_macros_with_same_text(token)
|
||||
.into_iter()
|
||||
.filter_map(|it| ast::NameLike::cast(it.parent()?))
|
||||
.filter_map(move |name_like| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue