Skip to content

Commit 6082497

Browse files
committed
move mem::uninitialized deprecation back by 1 release, to 1.39
1 parent 97b1128 commit 6082497

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)