Skip to content

Commit

Permalink
Rollup merge of rust-lang#61160 - RalfJung:maybe-uninit-beta, r=pietr…
Browse files Browse the repository at this point in the history
…oalbini
  • Loading branch information
pietroalbini committed May 28, 2019
2 parents 3a5d62b + 5db1093 commit 80991f8
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 80991f8

Please sign in to comment.