about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorTim Diekmann <21277928+Cyres@users.noreply.github.com>2018-09-03 14:53:05 +0200
committerGitHub <noreply@github.com>2018-09-03 14:53:05 +0200
commit256cf8681ec0502ed97045ccf1b6d49768960d9b (patch)
tree3f08e488d20adf9cbb599ae709703a731c44fb7d /src/libcore
parentcdea63058aa944ac56e9b7fee294a8f81c700fac (diff)
downloadrust-256cf8681ec0502ed97045ccf1b6d49768960d9b.tar.gz
rust-256cf8681ec0502ed97045ccf1b6d49768960d9b.zip
Add const_unstable flag to `overflowing_shr`
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 3e6ec0b294c..19d3ad20247 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -3707,6 +3707,7 @@ Basic usage
 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) {