Skip to content

Commit d69e958

Browse files
authored
Rollup merge of #62599 - RalfJung:uninit, r=cramertj
move mem::uninitialized deprecation back by 1 release, to 1.39 As per discussion at #53491 (comment). Three releases also agrees with the precedent from `trim_left/right`. Three releases means that even nightly users (including rustc itself) get a full cycle from when the announcement is made in the stable release to when nightly starts to warn.
2 parents a4252fe + 6082497 commit d69e958

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RELEASES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Misc
6262
Compatibility Notes
6363
-------------------
6464
- With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
65-
longer recommended, and will be deprecated in 1.38.0.
65+
longer recommended, and will be deprecated in 1.39.0.
6666

6767
[60318]: https://github.com/rust-lang/rust/pull/60318/
6868
[60364]: https://github.com/rust-lang/rust/pull/60364/

src/libcore/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ pub unsafe fn zeroed<T>() -> T {
472472
/// [`MaybeUninit<T>`]: union.MaybeUninit.html
473473
/// [inv]: union.MaybeUninit.html#initialization-invariant
474474
#[inline]
475-
#[rustc_deprecated(since = "1.38.0", reason = "use `mem::MaybeUninit` instead")]
475+
#[rustc_deprecated(since = "1.39.0", reason = "use `mem::MaybeUninit` instead")]
476476
#[stable(feature = "rust1", since = "1.0.0")]
477477
pub unsafe fn uninitialized<T>() -> T {
478478
MaybeUninit::uninit().assume_init()

0 commit comments

Comments
 (0)