Skip to content

Commit 1d6719d

Browse files
committed
---
yaml --- r: 14787 b: refs/heads/try c: 8f9afec h: refs/heads/master i: 14785: 9cce7cd 14783: 5ff19c0 v: v3
1 parent 76fd353 commit 1d6719d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 3e8bb22af17f7c97e2513ac4d99323dcb46ca6fe
5+
refs/heads/try: 8f9afec5a376c8375f5184be0f4e48a3a4f751da
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/middle/regionck.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ fn check_expr(expr: @ast::expr, cx: ctxt, visitor: visit::vt<ctxt>) {
4444
referent_block_id =
4545
parent_blocks.get(referent_block_id);
4646
} else {
47-
// TODO: Enable this.
48-
49-
//cx.tcx.sess.span_err(expr.span,
50-
// "reference escapes " +
51-
// "its block");
47+
cx.tcx.sess.span_err(expr.span,
48+
"reference escapes " +
49+
"its block");
5250
break;
5351
}
5452
}

0 commit comments

Comments
 (0)