diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-05-26 19:02:26 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-06-05 14:41:03 +0300 |
| commit | 702c47baae8e417d5ca377acb886893e902f2afa (patch) | |
| tree | 3c959c5283aea249f63f36b48f8a4f2fc6fcd761 /src/libcore/num | |
| parent | 4adc967ed168d5469e39267d4ac81383434830b4 (diff) | |
| download | rust-702c47baae8e417d5ca377acb886893e902f2afa.tar.gz rust-702c47baae8e417d5ca377acb886893e902f2afa.zip | |
core: mark relevant functions with #[rustc_inherit_overflow_checks].
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 5988a6375d4..883e9206dde 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -1033,7 +1033,7 @@ macro_rules! int_impl { /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[inline] - #[rustc_no_mir] // FIXME #29769 MIR overflow checking is TBD. + #[rustc_inherit_overflow_checks] pub fn pow(self, mut exp: u32) -> Self { let mut base = self; let mut acc = Self::one(); @@ -1075,7 +1075,7 @@ macro_rules! int_impl { /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[inline] - #[rustc_no_mir] // FIXME #29769 MIR overflow checking is TBD. + #[rustc_inherit_overflow_checks] pub fn abs(self) -> Self { if self.is_negative() { // Note that the #[inline] above means that the overflow @@ -2061,7 +2061,7 @@ macro_rules! uint_impl { /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[inline] - #[rustc_no_mir] // FIXME #29769 MIR overflow checking is TBD. + #[rustc_inherit_overflow_checks] pub fn pow(self, mut exp: u32) -> Self { let mut base = self; let mut acc = Self::one(); |
