Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 519de42

Browse files
committed
Gate another assertion behind compiler-builtins
This is causing link errors on Windows.
1 parent b60ad3e commit 519de42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libm/src/math/support/int_traits.rs

+1
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ macro_rules! cast_into {
394394
fn cast(self) -> $into {
395395
// All we can really do to enforce casting rules is check the rules when in
396396
// debug mode.
397+
#[cfg(not(feature = "compiler-builtins"))]
397398
debug_assert!(<$into>::try_from(self).is_ok(), "failed cast from {self}");
398399
self as $into
399400
}

0 commit comments

Comments
 (0)