mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
add record pat missing field diagnostic
This commit is contained in:
parent
176f7f6117
commit
e63315b8f1
7 changed files with 159 additions and 57 deletions
|
@ -255,7 +255,7 @@ impl SourceAnalyzer {
|
|||
_ => return None,
|
||||
};
|
||||
|
||||
let (variant, missing_fields) =
|
||||
let (variant, missing_fields, _exhaustive) =
|
||||
record_pattern_missing_fields(db, infer, pat_id, &body[pat_id])?;
|
||||
let res = self.missing_fields(db, krate, substs, variant, missing_fields);
|
||||
Some(res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue