Rollup merge of #62599 - RalfJung:uninit, r=cramertj
move mem::uninitialized deprecation back by 1 release, to 1.39 As per discussion at https://github.com/rust-lang/rust/issues/53491#issuecomment-509271182. 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.
This commit is contained in:
commit
d69e9588f0
2 changed files with 2 additions and 2 deletions
|
|
@ -472,7 +472,7 @@ pub unsafe fn zeroed<T>() -> T {
|
|||
/// [`MaybeUninit<T>`]: union.MaybeUninit.html
|
||||
/// [inv]: union.MaybeUninit.html#initialization-invariant
|
||||
#[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")]
|
||||
pub unsafe fn uninitialized<T>() -> T {
|
||||
MaybeUninit::uninit().assume_init()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue