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

Commit 7474c17

Browse files
committed
swap stable to be unstable, use debug_assertions
1 parent 2a89eb0 commit 7474c17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/math/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ macro_rules! force_eval {
66
};
77
}
88

9-
#[cfg(not(feature = "checked"))]
9+
#[cfg(not(debug_assertions))]
1010
macro_rules! i {
1111
($array:expr, $index:expr) => {
1212
unsafe { *$array.get_unchecked($index) }
@@ -36,7 +36,7 @@ macro_rules! i {
3636
};
3737
}
3838

39-
#[cfg(feature = "checked")]
39+
#[cfg(debug_assertions)]
4040
macro_rules! i {
4141
($array:expr, $index:expr) => {
4242
*$array.get($index).unwrap()
@@ -60,7 +60,7 @@ macro_rules! i {
6060

6161
macro_rules! llvm_intrinsically_optimized {
6262
(#[cfg($($clause:tt)*)] $e:expr) => {
63-
#[cfg(all(not(feature = "stable"), $($clause)*))]
63+
#[cfg(all(feature = "unstable", $($clause)*))]
6464
{
6565
if true { // thwart the dead code lint
6666
$e

0 commit comments

Comments
 (0)