diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-04-06 20:36:43 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-04-06 20:38:23 +0200 |
| commit | fc202ca034e0d657b41b98ad0b28d43fd32f3982 (patch) | |
| tree | 119721c91573c4f2d8e0ec625df853746f713e72 /src/rustc/middle/check_loop.rs | |
| parent | c902eafa14803ca9fcb0b59ce852bdabca826c6f (diff) | |
| download | rust-fc202ca034e0d657b41b98ad0b28d43fd32f3982.tar.gz rust-fc202ca034e0d657b41b98ad0b28d43fd32f3982.zip | |
Remove support for old-style for
Closes #1619
Diffstat (limited to 'src/rustc/middle/check_loop.rs')
| -rw-r--r-- | src/rustc/middle/check_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/middle/check_loop.rs b/src/rustc/middle/check_loop.rs index 4d69154aac8..5082aba1394 100644 --- a/src/rustc/middle/check_loop.rs +++ b/src/rustc/middle/check_loop.rs @@ -11,7 +11,7 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) { }, visit_expr: {|e: @expr, cx: ctx, v: visit::vt<ctx>| alt e.node { - expr_for(_, e, b) | expr_while(e, b) | expr_do_while(b, e) { + expr_while(e, b) | expr_do_while(b, e) { v.visit_expr(e, cx, v); v.visit_block(b, {in_loop: true with cx}, v); } |
