Skip to content

Commit

Permalink
Gate another assertion behind compiler-builtins
Browse files Browse the repository at this point in the history
This is causing link errors on Windows.
  • Loading branch information
tgross35 committed Feb 24, 2025
1 parent cb14a23 commit 69219c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/math/support/int_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 69219c4

Please sign in to comment.