Skip to content

Commit

Permalink
un-deprecate mem::zeroed
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jan 21, 2019
1 parent 33b0b71 commit e7998bf
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 e7998bf

Please sign in to comment.