Introduce hir::ExprKind::Let - Take 2
This commit is contained in:
parent
2323cbc231
commit
64bf8dfa33
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue