Introduce hir::ExprKind::Let - Take 2
This commit is contained in:
parent
2323cbc231
commit
64bf8dfa33
@ -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…
x
Reference in New Issue
Block a user