We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588dc38 commit 56eb986Copy full SHA for 56eb986
src/comp/middle/alias.rs
@@ -234,7 +234,7 @@ fn check_tail_call(&ctx cx, &@ast::expr call) {
234
alt (cx.local_map.find(dnum)) {
235
case (some(arg(ast::alias(?mut)))) {
236
if (mut_a && !mut) {
237
- cx.tcx.sess.span_warn(args.(i).span,
+ cx.tcx.sess.span_fatal(args.(i).span,
238
"passing an immutable \
239
alias by mutable alias");
240
}
@@ -245,7 +245,7 @@ fn check_tail_call(&ctx cx, &@ast::expr call) {
245
case (_) { ok = false; }
246
247
if (!ok) {
248
249
"can not pass a local value by \
250
alias to a tail call");
251
0 commit comments