Move the world over to using the new style string literals and types. Closes #2907.
This commit is contained in:
parent
5c5065e8bd
commit
92743dc2a6
424 changed files with 8132 additions and 8064 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue