Skip to content

Commit b92f70b

Browse files
committed
---
yaml --- r: 3281 b: refs/heads/master c: 56eb986 h: refs/heads/master i: 3279: af1db64 v: v3
1 parent bcdf6ca commit b92f70b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 588dc3897b1a510b7f65ca5e53ba5a99224c1923
2+
refs/heads/master: 56eb98658449d2a6cc38279d6ec8085f1837f991

trunk/src/comp/middle/alias.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ fn check_tail_call(&ctx cx, &@ast::expr call) {
234234
alt (cx.local_map.find(dnum)) {
235235
case (some(arg(ast::alias(?mut)))) {
236236
if (mut_a && !mut) {
237-
cx.tcx.sess.span_warn(args.(i).span,
237+
cx.tcx.sess.span_fatal(args.(i).span,
238238
"passing an immutable \
239239
alias by mutable alias");
240240
}
@@ -245,7 +245,7 @@ fn check_tail_call(&ctx cx, &@ast::expr call) {
245245
case (_) { ok = false; }
246246
}
247247
if (!ok) {
248-
cx.tcx.sess.span_warn(args.(i).span,
248+
cx.tcx.sess.span_fatal(args.(i).span,
249249
"can not pass a local value by \
250250
alias to a tail call");
251251
}

0 commit comments

Comments
 (0)