diff options
| author | AngelicosPhosphoros <angelicos.phosphoros@protonmail.com> | 2024-01-04 19:14:31 +0100 |
|---|---|---|
| committer | AngelicosPhosphoros <angelicos.phosphoros@protonmail.com> | 2024-01-04 19:14:31 +0100 |
| commit | 59c76fb21b3315e4a7bc0bca305416a1cf32833c (patch) | |
| tree | a360cf109d6526e11217264f28732a048b2fafef | |
| parent | 3a539c08891a422d34beb32d2556a08ea0357b7d (diff) | |
| download | rust-59c76fb21b3315e4a7bc0bca305416a1cf32833c.tar.gz rust-59c76fb21b3315e4a7bc0bca305416a1cf32833c.zip | |
Make `intrinsics::assume` const stable
Closes https://github.com/rust-lang/rust/issues/76972 Blocks https://github.com/rust-lang/rust/pull/119452 Approved in https://github.com/rust-lang/rust/pull/119452#issuecomment-1875741678
| -rw-r--r-- | library/core/src/intrinsics.rs | 2 | ||||
| -rw-r--r-- | library/core/src/lib.rs | 1 | ||||
| -rw-r--r-- | library/core/tests/lib.rs | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 5107ba1a9e1..78108b7d1d4 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -947,7 +947,7 @@ extern "rust-intrinsic" { /// own, or if it does not enable any significant optimizations. /// /// This intrinsic does not have a stable counterpart. - #[rustc_const_unstable(feature = "const_assume", issue = "76972")] + #[rustc_const_stable(feature = "const_assume", since = "CURRENT_RUSTC_VERSION")] #[rustc_nounwind] pub fn assume(b: bool); diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs index 07720f23598..9316ec93f24 100644 --- a/library/core/src/lib.rs +++ b/library/core/src/lib.rs @@ -119,7 +119,6 @@ #![feature(const_arguments_as_str)] #![feature(const_array_from_ref)] #![feature(const_array_into_iter_constructors)] -#![feature(const_assume)] #![feature(const_bigint_helper_methods)] #![feature(const_black_box)] #![feature(const_caller_location)] diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs index c531117bed5..64c16eff498 100644 --- a/library/core/tests/lib.rs +++ b/library/core/tests/lib.rs @@ -7,7 +7,6 @@ #![feature(bigint_helper_methods)] #![feature(cell_update)] #![feature(const_align_offset)] -#![feature(const_assume)] #![feature(const_align_of_val_raw)] #![feature(const_black_box)] #![feature(const_caller_location)] |
