Skip to content

Commit

Permalink
Rollup merge of #61006 - RalfJung:maybe-uninit, r=Centril
Browse files Browse the repository at this point in the history
adjust deprecation date of mem::uninitialized

In #60445 we [decided](#60445 (comment)) that we'd deprecate for 1.38 instead of 1.40, but I forgot to adjust for that.
  • Loading branch information
Centril authored May 21, 2019
2 parents 557af5b + 61735ab commit d504b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down

0 comments on commit d504b33

Please sign in to comment.