Skip to content

Commit 3d33d46

Browse files
committedApr 29, 2016
Replace the fallback case with a bug!
This branch shouldn't be hit so if it is, it's probably a mistake.
1 parent 60a0813 commit 3d33d46

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

‎src/librustc_trans/mir/rvalue.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ use asm;
1919
use base;
2020
use callee::Callee;
2121
use common::{self, val_ty,
22-
C_null,
23-
C_uint, C_undef, C_u8, BlockAndBuilder, Result};
22+
C_null, C_uint, C_undef, BlockAndBuilder, Result};
2423
use datum::{Datum, Lvalue};
2524
use debuginfo::DebugLoc;
2625
use declare;
@@ -657,9 +656,7 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {
657656
(val, bcx.zext(of, Type::bool(bcx.ccx())))
658657
}
659658
_ => {
660-
// Fall back to regular translation with a constant-false overflow flag
661-
(self.trans_scalar_binop(bcx, op, lhs, rhs, input_ty),
662-
C_u8(bcx.ccx(), 0))
659+
bug!("Operator `{:?}` is not a checkable operator", op)
663660
}
664661
};
665662

0 commit comments

Comments
 (0)
Please sign in to comment.