rustc: Turn on errors for region checking

This commit is contained in:
Patrick Walton 2012-03-11 13:29:23 -07:00
parent 3e8bb22af1
commit 8f9afec5a3

View File

@ -44,11 +44,9 @@ fn check_expr(expr: @ast::expr, cx: ctxt, visitor: visit::vt<ctxt>) {
referent_block_id =
parent_blocks.get(referent_block_id);
} else {
// TODO: Enable this.
//cx.tcx.sess.span_err(expr.span,
// "reference escapes " +
// "its block");
cx.tcx.sess.span_err(expr.span,
"reference escapes " +
"its block");
break;
}
}