rustc: Turn on errors for region checking
This commit is contained in:
parent
3e8bb22af1
commit
8f9afec5a3
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user