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

@ -421,7 +421,7 @@ impl<'a> InferenceContext<'a> {
}
TyKind::Never.intern(Interner)
}
Expr::RecordLit { path, fields, spread } => {
Expr::RecordLit { path, fields, spread, .. } => {
let (ty, def_id) = self.resolve_variant(path.as_deref(), false);
if let Some(variant) = def_id {
self.write_variant_resolution(tgt_expr.into(), variant);