@@ -1152,15 +1152,6 @@ impl<T> MaybeUninit<T> {
1152
1152
MaybeUninit { uninit : ( ) }
1153
1153
}
1154
1154
1155
- /// Deprecated before stabilization.
1156
- #[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1157
- #[ inline( always) ]
1158
- // FIXME: still used by stdsimd
1159
- // #[rustc_deprecated(since = "1.35.0", reason = "use `uninit` instead")]
1160
- pub const fn uninitialized ( ) -> MaybeUninit < T > {
1161
- Self :: uninit ( )
1162
- }
1163
-
1164
1155
/// Creates a new `MaybeUninit<T>` in an uninitialized state, with the memory being
1165
1156
/// filled with `0` bytes. It depends on `T` whether that already makes for
1166
1157
/// proper initialization. For example, `MaybeUninit<usize>::zeroed()` is initialized,
@@ -1221,14 +1212,6 @@ impl<T> MaybeUninit<T> {
1221
1212
}
1222
1213
}
1223
1214
1224
- /// Deprecated before stabilization.
1225
- #[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1226
- #[ inline( always) ]
1227
- #[ rustc_deprecated( since = "1.35.0" , reason = "use `write` instead" ) ]
1228
- pub fn set ( & mut self , val : T ) -> & mut T {
1229
- self . write ( val)
1230
- }
1231
-
1232
1215
/// Gets a pointer to the contained value. Reading from this pointer or turning it
1233
1216
/// into a reference is undefined behavior unless the `MaybeUninit<T>` is initialized.
1234
1217
///
@@ -1346,15 +1329,6 @@ impl<T> MaybeUninit<T> {
1346
1329
ManuallyDrop :: into_inner ( self . value )
1347
1330
}
1348
1331
1349
- /// Deprecated before stabilization.
1350
- #[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1351
- #[ inline( always) ]
1352
- // FIXME: still used by stdsimd
1353
- // #[rustc_deprecated(since = "1.35.0", reason = "use `assume_init` instead")]
1354
- pub unsafe fn into_initialized ( self ) -> T {
1355
- self . assume_init ( )
1356
- }
1357
-
1358
1332
/// Reads the value from the `MaybeUninit<T>` container. The resulting `T` is subject
1359
1333
/// to the usual drop handling.
1360
1334
///
@@ -1417,14 +1391,6 @@ impl<T> MaybeUninit<T> {
1417
1391
self . as_ptr ( ) . read ( )
1418
1392
}
1419
1393
1420
- /// Deprecated before stabilization.
1421
- #[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1422
- #[ inline( always) ]
1423
- #[ rustc_deprecated( since = "1.35.0" , reason = "use `read` instead" ) ]
1424
- pub unsafe fn read_initialized ( & self ) -> T {
1425
- self . read ( )
1426
- }
1427
-
1428
1394
/// Gets a reference to the contained value.
1429
1395
///
1430
1396
/// # Safety
0 commit comments