]> git.lizzy.rs Git - rust.git/commitdiff
Add const_unstable flag to `overflowing_shr`
authorTim Diekmann <21277928+Cyres@users.noreply.github.com>
Mon, 3 Sep 2018 12:53:05 +0000 (14:53 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Sep 2018 12:53:05 +0000 (14:53 +0200)
src/libcore/num/mod.rs

index 3e6ec0b294c9002f13d7413c3523f2585cfcb648..19d3ad20247130fa6c33ec920eec8f1a78aab6a8 100644 (file)
@@ -3707,6 +3707,7 @@ pub fn overflowing_shr(self, rhs: u32) -> (Self, bool) {
 assert_eq!(0x10", stringify!($SelfT), ".overflowing_shr(132), (0x1, true));", $EndFeature, "
 ```"),
             #[stable(feature = "wrapping", since = "1.7.0")]
+            #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
             #[cfg(not(stage0))]
             pub const fn overflowing_shr(self, rhs: u32) -> (Self, bool) {