Skip to content

Commit 5ce3f74

Browse files
authored
Rollup merge of #57825 - RalfJung:zeroed, r=nikomatsakis
un-deprecate mem::zeroed as per the discussion around <#53491 (comment)>
2 parents 51f5368 + e7998bf commit 5ce3f74

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libcore/mem.rs

-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ pub const fn needs_drop<T>() -> bool {
489489
/// assert_eq!(0, x);
490490
/// ```
491491
#[inline]
492-
#[rustc_deprecated(since = "2.0.0", reason = "use `mem::MaybeUninit::zeroed` instead")]
493492
#[stable(feature = "rust1", since = "1.0.0")]
494493
pub unsafe fn zeroed<T>() -> T {
495494
#[cfg(not(stage0))]

0 commit comments

Comments
 (0)