Rollup merge of #57825 - RalfJung:zeroed, r=nikomatsakis
un-deprecate mem::zeroed as per the discussion around <https://github.com/rust-lang/rust/issues/53491#issuecomment-451454793>
This commit is contained in:
commit
5ce3f74096
1 changed files with 0 additions and 1 deletions
|
|
@ -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))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue