move mem::uninitialized deprecation back by 1 release, to 1.39

This commit is contained in:
Ralf Jung 2019-07-11 22:24:01 +02:00
parent 97b1128589
commit 608249703c
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ Misc
Compatibility Notes Compatibility Notes
------------------- -------------------
- With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
longer recommended, and will be deprecated in 1.38.0. longer recommended, and will be deprecated in 1.39.0.
[60318]: https://github.com/rust-lang/rust/pull/60318/ [60318]: https://github.com/rust-lang/rust/pull/60318/
[60364]: https://github.com/rust-lang/rust/pull/60364/ [60364]: https://github.com/rust-lang/rust/pull/60364/

View File

@ -472,7 +472,7 @@ pub unsafe fn zeroed<T>() -> T {
/// [`MaybeUninit<T>`]: union.MaybeUninit.html /// [`MaybeUninit<T>`]: union.MaybeUninit.html
/// [inv]: union.MaybeUninit.html#initialization-invariant /// [inv]: union.MaybeUninit.html#initialization-invariant
#[inline] #[inline]
#[rustc_deprecated(since = "1.38.0", reason = "use `mem::MaybeUninit` instead")] #[rustc_deprecated(since = "1.39.0", reason = "use `mem::MaybeUninit` instead")]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub unsafe fn uninitialized<T>() -> T { pub unsafe fn uninitialized<T>() -> T {
MaybeUninit::uninit().assume_init() MaybeUninit::uninit().assume_init()