Skip to content

Commit d1e28db

Browse files
committed
---
yaml --- r: 10690 b: refs/heads/snap-stage3 c: e991855 h: refs/heads/master v: v3
1 parent 1b6e727 commit d1e28db

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c01f5ef034368f035270f083ad9ba0fe6aa27a1c
4+
refs/heads/snap-stage3: e991855d66cb299337b293d3e2d1b7f0a511ff69
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/rustc/middle/block_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn visit_expr(ex: @expr, cx: ctx, v: visit::vt<ctx>) {
3434
i += 1u;
3535
}
3636
}
37-
expr_loop_body(body) {
37+
expr_loop_body(body) | expr_do_body(body) {
3838
cx.allow_block = true;
3939
v.visit_expr(body, cx, v);
4040
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn f(f: fn&(int)) { f(10) }
2+
3+
fn main() {
4+
do f() { |i| assert i == 10 }
5+
}

0 commit comments

Comments
 (0)