File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,11 @@ pub unsafe fn read_and_drop<T>(dest: *mut T) -> T {
145
145
///
146
146
/// # Safety
147
147
///
148
- /// Beyond accepting a raw pointer, this operation is unsafe because it does
149
- /// not drop the contents of `dst`. This could leak allocations or resources,
150
- /// so care must be taken not to overwrite an object that should be dropped.
148
+ /// This operation is marked unsafe because it accepts a raw pointer.
149
+ ///
150
+ /// It does not drop the contents of `dst`. This is safe, but it could leak
151
+ /// allocations or resources, so care must be taken not to overwrite an object
152
+ /// that should be dropped.
151
153
///
152
154
/// This is appropriate for initializing uninitialized memory, or overwriting
153
155
/// memory that has previously been `read` from.
You can’t perform that action at this time.
0 commit comments