File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 588dc3897b1a510b7f65ca5e53ba5a99224c1923
2
+ refs/heads/master: 56eb98658449d2a6cc38279d6ec8085f1837f991
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ fn check_tail_call(&ctx cx, &@ast::expr call) {
234
234
alt ( cx. local_map. find( dnum) ) {
235
235
case ( some( arg( ast:: alias( ?mut ) ) ) ) {
236
236
if ( mut_a && !mut) {
237
- cx. tcx. sess. span_warn ( args. ( i) . span,
237
+ cx. tcx. sess. span_fatal ( args. ( i) . span,
238
238
"passing an immutable \
239
239
alias by mutable alias") ;
240
240
}
@@ -245,7 +245,7 @@ fn check_tail_call(&ctx cx, &@ast::expr call) {
245
245
case ( _) { ok = false ; }
246
246
}
247
247
if ( !ok) {
248
- cx. tcx. sess. span_warn ( args. ( i) . span,
248
+ cx. tcx. sess. span_fatal ( args. ( i) . span,
249
249
"can not pass a local value by \
250
250
alias to a tail call") ;
251
251
}
You can’t perform that action at this time.
0 commit comments