mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
internal: Filter out opaque tokens in some of IDE feature macro descensions
This commit is contained in:
parent
ac4edbf9dc
commit
24d65bb7cf
11 changed files with 114 additions and 70 deletions
|
@ -83,7 +83,7 @@ pub(crate) fn goto_definition(
|
|||
}
|
||||
|
||||
let navs = sema
|
||||
.descend_into_macros(original_token.clone())
|
||||
.descend_into_macros_no_opaque(original_token.clone())
|
||||
.into_iter()
|
||||
.filter_map(|token| {
|
||||
let parent = token.parent()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue