Take a slice in stmt_let_pat.
This commit is contained in:
parent
1fb257b3b4
commit
4a21af67e3
3 changed files with 16 additions and 9 deletions
|
@ -1026,7 +1026,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
|
||||
// Introduce a `let` for destructuring: `let (lhs1, lhs2) = t`.
|
||||
let destructure_let = self.stmt_let_pat(
|
||||
ThinVec::new(),
|
||||
&[],
|
||||
whole_span,
|
||||
Some(rhs),
|
||||
pat,
|
||||
|
@ -1785,7 +1785,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
|
||||
// `let mut __next`
|
||||
let next_let = self.stmt_let_pat(
|
||||
ThinVec::new(),
|
||||
&[],
|
||||
desugared_span,
|
||||
None,
|
||||
next_pat,
|
||||
|
@ -1795,7 +1795,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
// `let <pat> = __next`
|
||||
let pat = self.lower_pat(pat);
|
||||
let pat_let = self.stmt_let_pat(
|
||||
ThinVec::new(),
|
||||
&[],
|
||||
desugared_span,
|
||||
Some(next_expr),
|
||||
pat,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue