Skip to content

Commit

Permalink
stabilize const_int_sign
Browse files Browse the repository at this point in the history
  • Loading branch information
tspiteri committed Jun 29, 2020
1 parent c1c674c commit 056d925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/libcore/num/mod.rs
Expand Up @@ -2203,7 +2203,8 @@ assert_eq!((-10", stringify!($SelfT), ").signum(), -1);",
$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_int_sign", issue = "53718")]
#[rustc_const_stable(feature = "const_int_sign", since = "1.46.0")]
#[cfg_attr(bootstrap, allow_internal_unstable(const_if_match))]
#[inline]
pub const fn signum(self) -> Self {
match self {
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/consts/const-int-sign-rpass.rs
@@ -1,7 +1,5 @@
// run-pass

#![feature(const_int_sign)]

const NEGATIVE_A: bool = (-10i32).is_negative();
const NEGATIVE_B: bool = 10i32.is_negative();
const POSITIVE_A: bool = (-10i32).is_positive();
Expand Down

0 comments on commit 056d925

Please sign in to comment.