Skip to content

Commit 9d6055b

Browse files
committed
Mark uint::wrapping_next_power_of_two as #[inline]
This brings it in line with `next_power_of_two` and `checked_next_power_of_two`
1 parent 919ca76 commit 9d6055b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/num/uint_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2225,6 +2225,7 @@ macro_rules! uint_impl {
22252225
#[doc = concat!("assert_eq!(3", stringify!($SelfT), ".wrapping_next_power_of_two(), 4);")]
22262226
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.wrapping_next_power_of_two(), 0);")]
22272227
/// ```
2228+
#[inline]
22282229
#[unstable(feature = "wrapping_next_power_of_two", issue = "32463",
22292230
reason = "needs decision on wrapping behaviour")]
22302231
#[rustc_const_unstable(feature = "wrapping_next_power_of_two", issue = "32463")]

0 commit comments

Comments
 (0)