diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-02-24 06:52:48 +0000 |
|---|---|---|
| committer | Trevor Gross <t.gross35@gmail.com> | 2025-02-24 02:25:17 -0500 |
| commit | 17748827383d17e26cb222b4402976d1441378da (patch) | |
| tree | c72cbddebe6edcec29ee14e88f0df4634858ab8a | |
| parent | 2615971f55e24570805180b820e85457b74ba1be (diff) | |
| download | rust-17748827383d17e26cb222b4402976d1441378da.tar.gz rust-17748827383d17e26cb222b4402976d1441378da.zip | |
Gate another assertion behind `compiler-builtins`
This is causing link errors on Windows.
| -rw-r--r-- | library/compiler-builtins/libm/src/math/support/int_traits.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/compiler-builtins/libm/src/math/support/int_traits.rs b/library/compiler-builtins/libm/src/math/support/int_traits.rs index f19c8683521..491adb1f22c 100644 --- a/library/compiler-builtins/libm/src/math/support/int_traits.rs +++ b/library/compiler-builtins/libm/src/math/support/int_traits.rs @@ -394,6 +394,7 @@ macro_rules! cast_into { fn cast(self) -> $into { // All we can really do to enforce casting rules is check the rules when in // debug mode. + #[cfg(not(feature = "compiler-builtins"))] debug_assert!(<$into>::try_from(self).is_ok(), "failed cast from {self}"); self as $into } |
