File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ pub fn needs_drop<T>() -> bool {
514
514
/// assert_eq!(0, x);
515
515
/// ```
516
516
#[ inline]
517
- #[ rustc_deprecated( since = "1.30 .0" , reason = "use `mem::MaybeUninit::zeroed` instead" ) ]
517
+ #[ rustc_deprecated( since = "2.0 .0" , reason = "use `mem::MaybeUninit::zeroed` instead" ) ]
518
518
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
519
519
pub unsafe fn zeroed < T > ( ) -> T {
520
520
intrinsics:: init ( )
@@ -609,7 +609,7 @@ pub unsafe fn zeroed<T>() -> T {
609
609
/// [copy_no]: ../intrinsics/fn.copy_nonoverlapping.html
610
610
/// [`Drop`]: ../ops/trait.Drop.html
611
611
#[ inline]
612
- #[ rustc_deprecated( since = "1.30 .0" , reason = "use `mem::MaybeUninit::uninitialized` instead" ) ]
612
+ #[ rustc_deprecated( since = "2.0 .0" , reason = "use `mem::MaybeUninit::uninitialized` instead" ) ]
613
613
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
614
614
pub unsafe fn uninitialized < T > ( ) -> T {
615
615
intrinsics:: uninit ( )
@@ -1030,6 +1030,7 @@ impl<T: ?Sized> DerefMut for ManuallyDrop<T> {
1030
1030
/// A newtype to construct uninitialized instances of `T`
1031
1031
#[ allow( missing_debug_implementations) ]
1032
1032
#[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1033
+ // NOTE after stabilizing `MaybeUninit` proceed to deprecate `mem::{uninitialized,zeroed}`
1033
1034
pub union MaybeUninit < T > {
1034
1035
uninit : ( ) ,
1035
1036
value : ManuallyDrop < T > ,
You can’t perform that action at this time.
0 commit comments