mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix source_to_def trying to use attribute macro calls as containers
This commit is contained in:
parent
d1e489185f
commit
0f4463e45e
4 changed files with 44 additions and 7 deletions
|
@ -569,7 +569,6 @@ impl<'db> SemanticsImpl<'db> {
|
|||
node: &SyntaxNode,
|
||||
offset: TextSize,
|
||||
) -> impl Iterator<Item = impl Iterator<Item = SyntaxNode> + '_> + '_ {
|
||||
// Handle macro token cases
|
||||
node.token_at_offset(offset)
|
||||
.map(move |token| self.descend_into_macros(token))
|
||||
.map(|descendants| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue