diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-12 23:42:42 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-20 19:35:03 +0300 |
| commit | 993bb072ff30a0e6fbc4689ba1639dfdb951888c (patch) | |
| tree | 8ecec80ce62bb7bde501c06d255115a4cf5e65de /library/std/src | |
| parent | ae6aa22cf26fede2177abe4ff974030058885b7a (diff) | |
rustc_expand: Mark inner `#![test]` attributes as soft-unstable
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/num/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/num/tests.rs b/library/std/src/num/tests.rs index 2f50b73f490..df0df3f23f7 100644 --- a/library/std/src/num/tests.rs +++ b/library/std/src/num/tests.rs @@ -75,8 +75,8 @@ fn test_checked_mul() { macro_rules! test_is_power_of_two { ($test_name:ident, $T:ident) => { + #[test] fn $test_name() { - #![test] assert_eq!((0 as $T).is_power_of_two(), false); assert_eq!((1 as $T).is_power_of_two(), true); assert_eq!((2 as $T).is_power_of_two(), true); @@ -96,8 +96,8 @@ test_is_power_of_two! { test_is_power_of_two_uint, usize } macro_rules! test_next_power_of_two { ($test_name:ident, $T:ident) => { + #[test] fn $test_name() { - #![test] assert_eq!((0 as $T).next_power_of_two(), 1); let mut next_power = 1; for i in 1 as $T..40 { @@ -118,8 +118,8 @@ test_next_power_of_two! { test_next_power_of_two_uint, usize } macro_rules! test_checked_next_power_of_two { ($test_name:ident, $T:ident) => { + #[test] fn $test_name() { - #![test] assert_eq!((0 as $T).checked_next_power_of_two(), Some(1)); let smax = $T::MAX >> 1; assert_eq!(smax.checked_next_power_of_two(), Some(smax + 1)); |
