diff --git a/src/expr.rs b/src/expr.rs index 6cfeb9977a96..975af6c02947 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), } }