]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/interpret/cast.rs
Auto merge of #69586 - petrochenkov:unmerge, r=Centril
[rust.git] / src / librustc_mir / interpret / cast.rs
index 1a0be582ce67f4a9572933b7b4c70c56e0d2b845..3cbb0667ff3923f051c45ac051c2eb995b5e0254 100644 (file)
@@ -202,7 +202,7 @@ fn cast_from_int(
 
             Char => {
                 // `u8` to `char` cast
-                debug_assert_eq!(v as u8 as u128, v);
+                assert_eq!(v as u8 as u128, v);
                 Ok(Scalar::from_uint(v, Size::from_bytes(4)))
             }