1
Fork 0

Move the world over to using the new style string literals and types. Closes #2907.

This commit is contained in:
Michael Sullivan 2012-07-13 22:57:48 -07:00
parent 5c5065e8bd
commit 92743dc2a6
424 changed files with 8132 additions and 8064 deletions

View file

@ -30,17 +30,17 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
}
expr_break {
if !cx.in_loop {
tcx.sess.span_err(e.span, "`break` outside of loop");
tcx.sess.span_err(e.span, ~"`break` outside of loop");
}
}
expr_again {
if !cx.in_loop {
tcx.sess.span_err(e.span, "`again` outside of loop");
tcx.sess.span_err(e.span, ~"`again` outside of loop");
}
}
expr_ret(oe) {
if !cx.can_ret {
tcx.sess.span_err(e.span, "`ret` in block function");
tcx.sess.span_err(e.span, ~"`ret` in block function");
}
visit::visit_expr_opt(oe, cx, v);
}