File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 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> {
12301230 /// let x_vec = unsafe { &*x.as_ptr() };
12311231 /// // We have created a reference to an uninitialized vector! This is undefined behavior.
12321232 /// ```
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.)
12331235 #[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
12341236 #[ inline( always) ]
12351237 pub fn as_ptr ( & self ) -> * const T {
@@ -1266,6 +1268,8 @@ impl<T> MaybeUninit<T> {
12661268 /// let x_vec = unsafe { &mut *x.as_mut_ptr() };
12671269 /// // We have created a reference to an uninitialized vector! This is undefined behavior.
12681270 /// ```
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.)
12691273 #[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
12701274 #[ inline( always) ]
12711275 pub fn as_mut_ptr ( & mut self ) -> * mut T {
You can’t perform that action at this time.
0 commit comments