From 4cce4ffdefd23b4113ca2f54128b88b70fd31dde Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Thu, 29 Nov 2018 21:13:04 +0100 Subject: Add inline attributes and add unit to CommonTypes --- src/libcore/num/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libcore') diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 57b5903c9d3..c87dcbe500c 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -3614,6 +3614,7 @@ assert_eq!(3", stringify!($SelfT), ".checked_next_power_of_two(), Some(4)); assert_eq!(", stringify!($SelfT), "::max_value().checked_next_power_of_two(), None);", $EndFeature, " ```"), + #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn checked_next_power_of_two(self) -> Option { self.one_less_than_next_power_of_two().checked_add(1) -- cgit 1.4.1-3-g733a5