Skip to content

Commit 8bea1df

Browse files
Rollup merge of rust-lang#119583 - AngelicosPhosphoros:const_assume, r=RalfJung
Make `intrinsics::assume` const stable Closes rust-lang#76972 Blocks rust-lang#119452 Approved in rust-lang#119452 (comment) r? `@RalfJung`
2 parents 3a983ad + 59c76fb commit 8bea1df

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ extern "rust-intrinsic" {
947947
/// own, or if it does not enable any significant optimizations.
948948
///
949949
/// This intrinsic does not have a stable counterpart.
950-
#[rustc_const_unstable(feature = "const_assume", issue = "76972")]
950+
#[rustc_const_stable(feature = "const_assume", since = "CURRENT_RUSTC_VERSION")]
951951
#[rustc_nounwind]
952952
pub fn assume(b: bool);
953953

library/core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
#![feature(const_arguments_as_str)]
120120
#![feature(const_array_from_ref)]
121121
#![feature(const_array_into_iter_constructors)]
122-
#![feature(const_assume)]
123122
#![feature(const_bigint_helper_methods)]
124123
#![feature(const_black_box)]
125124
#![feature(const_caller_location)]

library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#![feature(bigint_helper_methods)]
1010
#![feature(cell_update)]
1111
#![feature(const_align_offset)]
12-
#![feature(const_assume)]
1312
#![feature(const_align_of_val_raw)]
1413
#![feature(const_black_box)]
1514
#![feature(const_caller_location)]

0 commit comments

Comments
 (0)