Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/pat.rs')
-rw-r--r--crates/hir-ty/src/infer/pat.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/hir-ty/src/infer/pat.rs b/crates/hir-ty/src/infer/pat.rs
index e876375cbc..2583054fcd 100644
--- a/crates/hir-ty/src/infer/pat.rs
+++ b/crates/hir-ty/src/infer/pat.rs
@@ -1247,13 +1247,7 @@ https://doc.rust-lang.org/reference/types.html#trait-objects";
self.push_diagnostic(InferenceDiagnostic::UnionPatHasRest { pat });
}
} else if !unmentioned_fields.is_empty() && !has_rest_pat {
- let missing_fields =
- unmentioned_fields.iter().map(|(field_id, _)| *field_id).collect();
- self.push_diagnostic(InferenceDiagnostic::RecordPatMissingFields {
- pat,
- variant,
- missing_fields,
- });
+ // FIXME: Emit an error.
}
}