mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
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:
parent
2a280de64f
commit
3f04c85e24
@ -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")]
|
||||||
|
Loading…
Reference in New Issue
Block a user