Skip to content

Commit

Permalink
Rollup merge of rust-lang#57825 - RalfJung:zeroed, r=nikomatsakis
Browse files Browse the repository at this point in the history
un-deprecate mem::zeroed

as per the discussion around <rust-lang#53491 (comment)>
  • Loading branch information
Centril committed Jan 26, 2019
2 parents 4634fd1 + e7998bf commit 14abf4a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ pub const fn needs_drop<T>() -> bool {
/// assert_eq!(0, x);
/// ```
#[inline]
#[rustc_deprecated(since = "2.0.0", reason = "use `mem::MaybeUninit::zeroed` instead")]
#[stable(feature = "rust1", since = "1.0.0")]
pub unsafe fn zeroed<T>() -> T {
#[cfg(not(stage0))]
Expand Down

0 comments on commit 14abf4a

Please sign in to comment.