@@ -2494,7 +2494,7 @@ fn check_pred_expr(fcx: @fn_ctxt, e: @ast::expr) -> bool {
2494
2494
alt e. node {
2495
2495
ast:: expr_call ( operator, operands) {
2496
2496
if !ty:: is_pred_ty ( fcx. ccx . tcx , expr_ty ( fcx. ccx . tcx , operator) ) {
2497
- fcx. ccx . tcx . sess . span_fatal
2497
+ fcx. ccx . tcx . sess . span_err
2498
2498
( operator. span ,
2499
2499
"operator in constraint has non-boolean return type" ) ;
2500
2500
}
@@ -2506,7 +2506,7 @@ fn check_pred_expr(fcx: @fn_ctxt, e: @ast::expr) -> bool {
2506
2506
// do nothing
2507
2507
}
2508
2508
_ {
2509
- fcx. ccx . tcx . sess . span_fatal ( operator. span ,
2509
+ fcx. ccx . tcx . sess . span_err ( operator. span ,
2510
2510
"Impure function as operator \
2511
2511
in constraint") ;
2512
2512
}
@@ -2516,19 +2516,19 @@ in constraint");
2516
2516
let s =
2517
2517
"Constraint args must be \
2518
2518
slot variables or literals";
2519
- fcx. ccx . tcx . sess . span_fatal ( e. span , s) ;
2519
+ fcx. ccx . tcx . sess . span_err ( e. span , s) ;
2520
2520
}
2521
2521
}
2522
2522
}
2523
2523
_ {
2524
2524
let s =
2525
2525
"In a constraint, expected the \
2526
2526
constraint name to be an explicit name";
2527
- fcx. ccx . tcx . sess . span_fatal ( e. span , s) ;
2527
+ fcx. ccx . tcx . sess . span_err ( e. span , s) ;
2528
2528
}
2529
2529
}
2530
2530
}
2531
- _ { fcx. ccx . tcx . sess . span_fatal ( e. span , "check on non-predicate" ) ; }
2531
+ _ { fcx. ccx . tcx . sess . span_err ( e. span , "check on non-predicate" ) ; }
2532
2532
}
2533
2533
ret bot;
2534
2534
}
0 commit comments