We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29951f9 commit f64feebCopy full SHA for f64feeb
crates/ide/src/hover.rs
@@ -176,8 +176,8 @@ pub(crate) fn hover(
176
return None;
177
}
178
179
- let record_pat_field_list =
180
- token.parent_ancestors().find_map(ast::RecordPatFieldList::cast)?;
+ let rest_pat = token.syntax().parent().and_then(ast::RestPat::cast)?;
+ let record_pat_field_list = rest_pat.syntax().parent().and_then(ast::RecordPatFieldList::cast)?;
181
182
let record_pat =
183
record_pat_field_list.syntax().parent().and_then(ast::RecordPat::cast)?;
0 commit comments