diff options
| author | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-09-28 16:09:32 +0200 |
|---|---|---|
| committer | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2023-09-28 16:19:33 +0200 |
| commit | 58ed8ad0dfd224fbdd77ba38f4f9f71d9261674b (patch) | |
| tree | 89796f880421027b827667e8de2a96ee37504aef | |
| parent | c01d8d238c57f9847e1f1dd5a1d2659b85e2a468 (diff) | |
| download | rust-58ed8ad0dfd224fbdd77ba38f4f9f71d9261674b.tar.gz rust-58ed8ad0dfd224fbdd77ba38f4f9f71d9261674b.zip | |
Stabilize `const_maybe_uninit_assume_init_read`
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 5 | ||||
| -rw-r--r-- | library/core/tests/lib.rs | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index d09a24b4b1d..6274a916f3e 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -686,7 +686,10 @@ impl<T> MaybeUninit<T> { /// // they both get dropped! /// ``` #[stable(feature = "maybe_uninit_extra", since = "1.60.0")] - #[rustc_const_unstable(feature = "const_maybe_uninit_assume_init_read", issue = "63567")] + #[rustc_const_stable( + feature = "const_maybe_uninit_assume_init_read", + since = "CURRENT_RUSTC_VERSION" + )] #[inline(always)] #[track_caller] pub const unsafe fn assume_init_read(&self) -> T { diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs index 773f2b955d8..98f141e44d2 100644 --- a/library/core/tests/lib.rs +++ b/library/core/tests/lib.rs @@ -15,7 +15,6 @@ #![feature(const_hash)] #![feature(const_heap)] #![feature(const_maybe_uninit_as_mut_ptr)] -#![feature(const_maybe_uninit_assume_init_read)] #![feature(const_nonnull_new)] #![feature(const_pointer_byte_offsets)] #![feature(const_pointer_is_aligned)] |
