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`
This commit is contained in:
Nixon Enraght-Moony 2022-03-02 09:14:53 +00:00
parent 2a280de64f
commit 3f04c85e24

View File

@ -2225,6 +2225,7 @@ macro_rules! uint_impl {
#[doc = concat!("assert_eq!(3", stringify!($SelfT), ".wrapping_next_power_of_two(), 4);")] #[doc = concat!("assert_eq!(3", stringify!($SelfT), ".wrapping_next_power_of_two(), 4);")]
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.wrapping_next_power_of_two(), 0);")] #[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.wrapping_next_power_of_two(), 0);")]
/// ``` /// ```
#[inline]
#[unstable(feature = "wrapping_next_power_of_two", issue = "32463", #[unstable(feature = "wrapping_next_power_of_two", issue = "32463",
reason = "needs decision on wrapping behaviour")] reason = "needs decision on wrapping behaviour")]
#[rustc_const_unstable(feature = "wrapping_next_power_of_two", issue = "32463")] #[rustc_const_unstable(feature = "wrapping_next_power_of_two", issue = "32463")]