adjust deprecation date of mem::uninitialized
This commit is contained in:
parent
46ad3e1882
commit
61735abc06
@ -466,7 +466,7 @@ pub unsafe fn zeroed<T>() -> T {
|
||||
/// [`MaybeUninit<T>`]: union.MaybeUninit.html
|
||||
/// [inv]: union.MaybeUninit.html#initialization-invariant
|
||||
#[inline]
|
||||
#[rustc_deprecated(since = "1.40.0", reason = "use `mem::MaybeUninit` instead")]
|
||||
#[rustc_deprecated(since = "1.38.0", reason = "use `mem::MaybeUninit` instead")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub unsafe fn uninitialized<T>() -> T {
|
||||
intrinsics::panic_if_uninhabited::<T>();
|
||||
|
Loading…
Reference in New Issue
Block a user