diff options
| author | Caio <c410.f3r@gmail.com> | 2021-08-08 11:49:13 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2021-08-15 16:18:26 -0300 |
| commit | 64bf8dfa33f1394fa317f2fa50580fcb13f458f9 (patch) | |
| tree | d575fa89ded8c186b0053db2af4ebb91afbda64d | |
| parent | 2323cbc2311d2b907b62d5dc58970756bfb3cbc0 (diff) | |
| download | rust-64bf8dfa33f1394fa317f2fa50580fcb13f458f9.tar.gz rust-64bf8dfa33f1394fa317f2fa50580fcb13f458f9.zip | |
Introduce hir::ExprKind::Let - Take 2
| -rw-r--r-- | src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs index 6cfeb9977a9..975af6c0294 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -616,7 +616,7 @@ struct ControlFlow<'a> { fn extract_pats_and_cond(expr: &ast::Expr) -> (Option<&ast::Pat>, &ast::Expr) { match expr.kind { - ast::ExprKind::Let(ref pat, ref cond) => (Some(pat), cond), + ast::ExprKind::Let(ref pat, ref cond, _) => (Some(pat), cond), _ => (None, expr), } } |
