mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 04:18:20 +00:00
Merge record lit's ellipsis into pre-existing spread's variant
This commit is contained in:
parent
e6a103ae50
commit
c134b20c9c
10 changed files with 55 additions and 34 deletions
|
|
@ -1023,7 +1023,7 @@ impl SourceAnalyzer {
|
|||
let expr_id = self.expr_id(db, &literal.clone().into())?;
|
||||
let substs = infer[expr_id].as_adt()?.1;
|
||||
|
||||
let (variant, missing_fields, _exhaustive) = match expr_id {
|
||||
let (variant, missing_fields, _) = match expr_id {
|
||||
ExprOrPatId::ExprId(expr_id) => {
|
||||
record_literal_missing_fields(db, infer, expr_id, &body[expr_id])?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue