mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Fix another missing fields diagnostics
This commit is contained in:
parent
ee1586c1ed
commit
cb0b13a583
3 changed files with 19 additions and 44 deletions
|
@ -110,8 +110,8 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
self.sink.push(MissingFields {
|
||||
file: source_ptr.file_id,
|
||||
field_list: AstPtr::new(&field_list),
|
||||
field_list_parent_path: record_lit.path().map(|path| AstPtr::new(&path)),
|
||||
missed_fields,
|
||||
list_parent_path: record_lit.path().map(|path| AstPtr::new(&path)),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -141,6 +141,9 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
self.sink.push(MissingPatFields {
|
||||
file: source_ptr.file_id,
|
||||
field_list: AstPtr::new(&field_list),
|
||||
field_list_parent_path: record_pat
|
||||
.path()
|
||||
.map(|path| AstPtr::new(&path)),
|
||||
missed_fields,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue