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

@ -114,7 +114,6 @@
#![feature(const_str_as_bytes)]
#![feature(const_str_len)]
#![cfg_attr(stage0, feature(const_int_rotate))]
#![feature(const_int_sign)]
#![feature(const_int_conversion)]
#![feature(const_transmute)]
#![feature(reverse_bits)]

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 }
}