mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 03:27:44 +00:00
Back out "Fix a mistake in condition"
This backs out commit e5c38558f5.
This commit is contained in:
parent
55d3851820
commit
34d05b3bd0
2 changed files with 2 additions and 1 deletions
|
|
@ -550,7 +550,7 @@ pub fn record_literal_missing_fields(
|
|||
) -> Option<(VariantId, Vec<LocalFieldId>, /*has spread expr*/ bool)> {
|
||||
let (fields, has_spread_expr, has_ellipsis) = match expr {
|
||||
Expr::RecordLit { fields, spread, .. } => {
|
||||
(fields, !matches!(spread, Spread::Base(_)), matches!(spread, Spread::Yes))
|
||||
(fields, matches!(spread, Spread::Base(_)), matches!(spread, Spread::Yes))
|
||||
}
|
||||
_ => return None,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue