mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 22:54:00 +00:00
simplify ancestor climbing to not consider macros
This commit is contained in:
parent
0ffb361eb9
commit
a778203db9
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ pub(super) fn struct_rest_pat(
|
|||
) -> Option<HoverResult> {
|
||||
let pat = expr_or_pat.as_ref().right()?;
|
||||
|
||||
let mut ancestors = sema.ancestors_with_macros(pat.syntax().clone());
|
||||
let mut ancestors = pat.syntax().ancestors();
|
||||
let _record_pat_field_list = ancestors.next()?;
|
||||
let record_pat = ancestors.next()?;
|
||||
let pattern = sema
|
||||
|
|
Loading…
Reference in a new issue