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 29a8b46 commit 49647cfCopy full SHA for 49647cf
libm/src/math/support/int_traits.rs
@@ -394,6 +394,7 @@ macro_rules! cast_into {
394
fn cast(self) -> $into {
395
// All we can really do to enforce casting rules is check the rules when in
396
// debug mode.
397
+ #[cfg(not(feature = "compiler-builtins"))]
398
debug_assert!(<$into>::try_from(self).is_ok(), "failed cast from {self}");
399
self as $into
400
}
0 commit comments