Skip to content

Commit 1465084

Browse files
committed
check assert on full test suite
1 parent bc3ee37 commit 1465084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl<'tcx> Const<'tcx> {
293293

294294
#[inline]
295295
pub fn try_eval_bits(&self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> Option<u128> {
296-
debug_assert!(matches!(
296+
assert!(matches!(
297297
self.ty().kind(),
298298
ty::Bool | ty::Int(_) | ty::Uint(_) | ty::Float(_) | ty::Char
299299
));

0 commit comments

Comments
 (0)