File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1174,16 +1174,16 @@ impl<T> MaybeUninit<T> {
1174
1174
& mut * self . value
1175
1175
}
1176
1176
1177
- /// Get a pointer to the contained value. Reading from this pointer will be undefined
1178
- /// behavior unless the `MaybeUninit` is initialized.
1177
+ /// Get a pointer to the contained value. Reading from this pointer or turning it
1178
+ /// into a reference will be undefined behavior unless the `MaybeUninit` is initialized.
1179
1179
#[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1180
1180
#[ inline( always) ]
1181
1181
pub fn as_ptr ( & self ) -> * const T {
1182
1182
unsafe { & * self . value as * const T }
1183
1183
}
1184
1184
1185
- /// Get a mutable pointer to the contained value. Reading from this pointer will be undefined
1186
- /// behavior unless the `MaybeUninit` is initialized.
1185
+ /// Get a mutable pointer to the contained value. Reading from this pointer or turning it
1186
+ /// into a reference will be undefined behavior unless the `MaybeUninit` is initialized.
1187
1187
#[ unstable( feature = "maybe_uninit" , issue = "53491" ) ]
1188
1188
#[ inline( always) ]
1189
1189
pub fn as_mut_ptr ( & mut self ) -> * mut T {
You can’t perform that action at this time.
0 commit comments