diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-05 10:57:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 10:57:23 -0500 |
| commit | 8bea1df254ca5225c547e8b2fdeb434dd8ac0226 (patch) | |
| tree | 6347395ebf243d2171329f84f0efdeeeac45bee3 | |
| parent | 3a983ad3b0334cf0f0c18fbf5e3d452962cf2a96 (diff) | |
| parent | 59c76fb21b3315e4a7bc0bca305416a1cf32833c (diff) | |
| download | rust-8bea1df254ca5225c547e8b2fdeb434dd8ac0226.tar.gz rust-8bea1df254ca5225c547e8b2fdeb434dd8ac0226.zip | |
Rollup merge of #119583 - AngelicosPhosphoros:const_assume, r=RalfJung
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 r? `@RalfJung`
| -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 031c8d9984c..696bf6f3a94 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 5946862d3e4..8604d41eb68 100644 --- a/library/core/tests/lib.rs +++ b/library/core/tests/lib.rs @@ -9,7 +9,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)] |
