stabilize const_int_sign

This commit is contained in:
Mazdak Farrokhzad 2018-12-24 19:35:50 +01:00
parent e258489eae
commit eb0597ae83
2 changed files with 0 additions and 3 deletions

View file

@ -1886,7 +1886,6 @@ assert!(!(-10", stringify!($SelfT), ").is_positive());",
$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_int_sign")]
#[inline]
pub const fn is_positive(self) -> bool { self > 0 }
}
@ -1905,7 +1904,6 @@ assert!(!10", stringify!($SelfT), ".is_negative());",
$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_int_sign")]
#[inline]
pub const fn is_negative(self) -> bool { self < 0 }
}