We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3ee37 commit 1465084Copy full SHA for 1465084
compiler/rustc_middle/src/mir/consts.rs
@@ -293,7 +293,7 @@ impl<'tcx> Const<'tcx> {
293
294
#[inline]
295
pub fn try_eval_bits(&self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> Option<u128> {
296
- debug_assert!(matches!(
+ assert!(matches!(
297
self.ty().kind(),
298
ty::Bool | ty::Int(_) | ty::Uint(_) | ty::Float(_) | ty::Char
299
));
0 commit comments