about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNixon Enraght-Moony <nixon.emoony@gmail.com>2022-03-02 09:14:53 +0000
committerNixon Enraght-Moony <nixon.emoony@gmail.com>2022-03-02 09:15:14 +0000
commit3f04c85e249dbefddc6f45e35146b119b2274ac0 (patch)
treee09a7b8334b7f62b83292a88b696871c6ebc7bfa
parent2a280de64fb34378174fa33b6866a7ee920ceb8d (diff)
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`
-rw-r--r--library/core/src/num/uint_macros.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs
index feec448ebbd..cbcf1617ac5 100644
--- a/library/core/src/num/uint_macros.rs
+++ b/library/core/src/num/uint_macros.rs
@@ -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!(", stringify!($SelfT), "::MAX.wrapping_next_power_of_two(), 0);")]
         /// ```
+        #[inline]
         #[unstable(feature = "wrapping_next_power_of_two", issue = "32463",
                    reason = "needs decision on wrapping behaviour")]
         #[rustc_const_unstable(feature = "wrapping_next_power_of_two", issue = "32463")]