diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-12 22:46:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-12 22:46:49 +0200 |
| commit | d69e9588f0f752bea54f8238f482f869567c676a (patch) | |
| tree | 4b24f361d6651390e1e3ef6a8526b1b1e8033c84 /src/libcore | |
| parent | a4252fe6d289d244ada2480aab93607b4f0fc421 (diff) | |
| parent | 608249703c1636ca541fa8b33be29db93d3177c0 (diff) | |
| download | rust-d69e9588f0f752bea54f8238f482f869567c676a.tar.gz rust-d69e9588f0f752bea54f8238f482f869567c676a.zip | |
Rollup merge of #62599 - RalfJung:uninit, r=cramertj
move mem::uninitialized deprecation back by 1 release, to 1.39 As per discussion at https://github.com/rust-lang/rust/issues/53491#issuecomment-509271182. Three releases also agrees with the precedent from `trim_left/right`. Three releases means that even nightly users (including rustc itself) get a full cycle from when the announcement is made in the stable release to when nightly starts to warn.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/mem/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index b62d81affdd..f2729168763 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -472,7 +472,7 @@ pub unsafe fn zeroed<T>() -> T { /// [`MaybeUninit<T>`]: union.MaybeUninit.html /// [inv]: union.MaybeUninit.html#initialization-invariant #[inline] -#[rustc_deprecated(since = "1.38.0", reason = "use `mem::MaybeUninit` instead")] +#[rustc_deprecated(since = "1.39.0", reason = "use `mem::MaybeUninit` instead")] #[stable(feature = "rust1", since = "1.0.0")] pub unsafe fn uninitialized<T>() -> T { MaybeUninit::uninit().assume_init() |
