Skip to content

Commit 056d925

Browse files
committed
stabilize const_int_sign
1 parent c1c674c commit 056d925

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/libcore/num/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,8 @@ assert_eq!((-10", stringify!($SelfT), ").signum(), -1);",
22032203
$EndFeature, "
22042204
```"),
22052205
#[stable(feature = "rust1", since = "1.0.0")]
2206-
#[rustc_const_unstable(feature = "const_int_sign", issue = "53718")]
2206+
#[rustc_const_stable(feature = "const_int_sign", since = "1.46.0")]
2207+
#[cfg_attr(bootstrap, allow_internal_unstable(const_if_match))]
22072208
#[inline]
22082209
pub const fn signum(self) -> Self {
22092210
match self {

src/test/ui/consts/const-int-sign-rpass.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// run-pass
22

3-
#![feature(const_int_sign)]
4-
53
const NEGATIVE_A: bool = (-10i32).is_negative();
64
const NEGATIVE_B: bool = 10i32.is_negative();
75
const POSITIVE_A: bool = (-10i32).is_positive();

0 commit comments

Comments
 (0)