Back out "Merge record lit's ellipsis into pre-existing spread's variant"

This backs out commit c134b20c9c.
This commit is contained in:
David Barsky 2025-01-27 17:20:11 -05:00
parent 77c1507048
commit f3451d54d6
10 changed files with 34 additions and 55 deletions

View file

@ -25,7 +25,7 @@ use crate::{
db::DefDatabase,
hir::{
Array, AsmOperand, Binding, BindingId, Expr, ExprId, ExprOrPatId, Label, LabelId, Pat,
PatId, RecordFieldPat, Spread, Statement,
PatId, RecordFieldPat, Statement,
},
nameres::DefMap,
path::{ModPath, Path},
@ -362,7 +362,7 @@ impl ExpressionStore {
for field in fields.iter() {
f(field.expr);
}
if let &Spread::Base(expr) = spread {
if let &Some(expr) = spread {
f(expr);
}
}
@ -490,7 +490,7 @@ impl ExpressionStore {
for field in fields.iter() {
f(field.expr);
}
if let &Spread::Base(expr) = spread {
if let &Some(expr) = spread {
f(expr);
}
}