Skip to content

Commit

Permalink
check assert on full test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Oct 1, 2023
1 parent bc3ee37 commit 1465084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/mir/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl<'tcx> Const<'tcx> {

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

0 comments on commit 1465084

Please sign in to comment.