mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add ellipsis
to HIR RecordLit
This commit is contained in:
parent
977e12a0bd
commit
fb063d360c
4 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue