Skip to content

Commit eeabad2

Browse files
committed
stabilize const_cttz
1 parent abc49b9 commit eeabad2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/src/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ extern "rust-intrinsic" {
15431543
/// let num_trailing = unsafe { cttz_nonzero(x) };
15441544
/// assert_eq!(num_trailing, 3);
15451545
/// ```
1546-
#[rustc_const_unstable(feature = "const_cttz", issue = "none")]
1546+
#[rustc_const_stable(feature = "const_cttz", since = "1.53.0")]
15471547
pub fn cttz_nonzero<T: Copy>(x: T) -> T;
15481548

15491549
/// Reverses the bytes in an integer type `T`.

core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
#![feature(const_int_unchecked_arith)]
8080
#![feature(const_mut_refs)]
8181
#![feature(const_refs_to_cell)]
82-
#![feature(const_cttz)]
8382
#![feature(const_panic)]
8483
#![feature(const_pin)]
8584
#![feature(const_fn)]

0 commit comments

Comments
 (0)