File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1230,6 +1230,8 @@ impl<T> MaybeUninit<T> {
1230
1230
/// let x_vec = unsafe { &*x.as_ptr() };
1231
1231
/// // We have created a reference to an uninitialized vector! This is undefined behavior.
1232
1232
/// ```
1233
+ /// (Notice that the rules around referenced to uninitialized data are not finalized yet, but
1234
+ /// until they are, it is advisable to avoid them.)
1233
1235
#[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1234
1236
#[ inline( always) ]
1235
1237
pub fn as_ptr ( & self ) -> * const T {
@@ -1266,6 +1268,8 @@ impl<T> MaybeUninit<T> {
1266
1268
/// let x_vec = unsafe { &mut *x.as_mut_ptr() };
1267
1269
/// // We have created a reference to an uninitialized vector! This is undefined behavior.
1268
1270
/// ```
1271
+ /// (Notice that the rules around referenced to uninitialized data are not finalized yet, but
1272
+ /// until they are, it is advisable to avoid them.)
1269
1273
#[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1270
1274
#[ inline( always) ]
1271
1275
pub fn as_mut_ptr ( & mut self ) -> * mut T {
You can’t perform that action at this time.
0 commit comments