Skip to content

Commit a778203

Browse files
committed
simplify ancestor climbing to not consider macros
1 parent 0ffb361 commit a778203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide/src/hover/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ pub(super) fn struct_rest_pat(
257257
) -> Option<HoverResult> {
258258
let pat = expr_or_pat.as_ref().right()?;
259259

260-
let mut ancestors = sema.ancestors_with_macros(pat.syntax().clone());
260+
let mut ancestors = pat.syntax().ancestors();
261261
let _record_pat_field_list = ancestors.next()?;
262262
let record_pat = ancestors.next()?;
263263
let pattern = sema

0 commit comments

Comments
 (0)