1
Fork 0

Take a slice in stmt_let_pat.

This commit is contained in:
Camille GILLOT 2021-01-04 21:50:45 +01:00
parent 1fb257b3b4
commit 4a21af67e3
3 changed files with 16 additions and 9 deletions

View file

@ -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,