about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-26 18:21:45 +0100
committerGitHub <noreply@github.com>2019-01-26 18:21:45 +0100
commit5ce3f740964b7a19020a18c3ef289db1cd45837b (patch)
tree181e05259d1d2c4be4d2924b5aa97343c3cf434b /src
parent51f53687e7143d7c1c60737c9805fae6a3746a17 (diff)
parente7998bf6a6e5cb3c12604d97c72435c1b4cea492 (diff)
downloadrust-5ce3f740964b7a19020a18c3ef289db1cd45837b.tar.gz
rust-5ce3f740964b7a19020a18c3ef289db1cd45837b.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/libcore/mem.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index 8fcbb73d9ce..9e100d0a58d 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -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))]