Skip to content

Commit 59c76fb

Browse files
committedJan 4, 2024
Make intrinsics::assume const stable
Closes rust-lang#76972 Blocks rust-lang#119452 Approved in rust-lang#119452 (comment)
1 parent 3a539c0 commit 59c76fb

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
@@ -7,7 +7,6 @@
77
#![feature(bigint_helper_methods)]
88
#![feature(cell_update)]
99
#![feature(const_align_offset)]
10-
#![feature(const_assume)]
1110
#![feature(const_align_of_val_raw)]
1211
#![feature(const_black_box)]
1312
#![feature(const_caller_location)]

0 commit comments

Comments
 (0)
Please sign in to comment.