mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 11:37:31 +00:00
Fix a mistake in condition
This commit is contained in:
parent
4fe18a6fb5
commit
e5c38558f5
2 changed files with 1 additions and 2 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