Skip to content

Commit 36ff2c8

Browse files
library: Stabilize const_intrinsic_forget
This is an implicit requirement of stabilizing `const_ptr_write`. Const-stabilizes the internal `core::intrinsics`: - `forget`
1 parent eb8ff20 commit 36ff2c8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ extern "rust-intrinsic" {
10841084
/// it does not require an `unsafe` block.
10851085
/// Therefore, implementations must not require the user to uphold
10861086
/// any safety invariants.
1087-
#[rustc_const_unstable(feature = "const_intrinsic_forget", issue = "none")]
1087+
#[rustc_const_stable(feature = "const_intrinsic_forget", since = "CURRENT_RUSTC_VERSION")]
10881088
#[rustc_safe_intrinsic]
10891089
#[rustc_nounwind]
10901090
pub fn forget<T: ?Sized>(_: T);

core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@
124124
#![feature(const_hash)]
125125
#![feature(const_heap)]
126126
#![feature(const_index_range_slice_index)]
127-
#![feature(const_intrinsic_forget)]
128127
#![feature(const_ipv4)]
129128
#![feature(const_ipv6)]
130129
#![feature(const_likely)]

0 commit comments

Comments
 (0)