Rollup merge of #99646 - compiler-errors:arg-mismatch-single-arg-label, r=estebank
Only point out a single function parameter if we have a single arg incompatibility Fixes #99635
This commit is contained in:
commit
2af344595a
18 changed files with 148 additions and 61 deletions
|
@ -2268,7 +2268,7 @@ impl<'a> Parser<'a> {
|
|||
attrs: attrs.into(),
|
||||
ty,
|
||||
pat,
|
||||
span: lo.to(this.token.span),
|
||||
span: lo.to(this.prev_token.span),
|
||||
id: DUMMY_NODE_ID,
|
||||
is_placeholder: false,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue