mirror of https://github.com/rust-lang/rust.git
Fix shadow.rs
This commit is contained in:
parent
62897747fd
commit
f40c77a776
|
@ -319,13 +319,6 @@ fn check_expr<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr, bindings:
|
|||
check_expr(cx, e, bindings)
|
||||
}
|
||||
},
|
||||
ExprKind::If(ref cond, ref then, ref otherwise) => {
|
||||
check_expr(cx, cond, bindings);
|
||||
check_expr(cx, &**then, bindings);
|
||||
if let Some(ref o) = *otherwise {
|
||||
check_expr(cx, o, bindings);
|
||||
}
|
||||
},
|
||||
ExprKind::While(ref cond, ref block, _) => {
|
||||
check_expr(cx, cond, bindings);
|
||||
check_block(cx, block, bindings);
|
||||
|
|
Loading…
Reference in New Issue