about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-11-29 21:13:04 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-11-29 22:11:02 +0100
commit4cce4ffdefd23b4113ca2f54128b88b70fd31dde (patch)
treec216f16a1b8ec4c976b5ce5a60f2c7109afa2a26 /src/libcore
parent3dde9e132207b5a40e12f8d5a1a363ebea60e0b0 (diff)
downloadrust-4cce4ffdefd23b4113ca2f54128b88b70fd31dde.tar.gz
rust-4cce4ffdefd23b4113ca2f54128b88b70fd31dde.zip
Add inline attributes and add unit to CommonTypes
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/num/mod.rs1
1 files changed, 1 insertions, 0 deletions
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> {
                 self.one_less_than_next_power_of_two().checked_add(1)