Add ellipsis to HIR RecordLit

This commit is contained in:
Ryo Yoshida 2022-07-22 18:12:21 +09:00
parent 977e12a0bd
commit fb063d360c
No known key found for this signature in database
GPG key ID: E25698A930586171
4 changed files with 6 additions and 4 deletions

View file

@ -305,7 +305,7 @@ pub fn record_literal_missing_fields(
expr: &Expr,
) -> Option<(VariantId, Vec<LocalFieldId>, /*exhaustive*/ bool)> {
let (fields, exhaustive) = match expr {
Expr::RecordLit { path: _, fields, spread } => (fields, spread.is_none()),
Expr::RecordLit { fields, spread, .. } => (fields, spread.is_none()),
_ => return None,
};