mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
Back out "Merge record lit's ellipsis into pre-existing spread's variant"
This backs out commit c134b20c9c.
This commit is contained in:
parent
77c1507048
commit
f3451d54d6
10 changed files with 34 additions and 55 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue