fix: When reference searching macro inputs, don't search everything that was downmapped

This commit is contained in:
Lukas Wirth 2022-05-23 16:09:56 +02:00
parent 038a71a201
commit ad537be194
3 changed files with 15 additions and 8 deletions

View file

@ -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| {