File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -437,21 +437,7 @@ mod mut_ptr;
437
437
///
438
438
/// # Safety
439
439
///
440
- /// Immediately upon executing, `drop_in_place` takes out a mutable borrow on the
441
- /// pointed-to-value. Effectively, this function is implemented like so:
442
- ///
443
- /// ```
444
- /// # struct Foo { x: i32 }
445
- /// unsafe fn drop_in_place(to_drop: *mut Foo) {
446
- /// drop_in_place_inner(&mut *to_drop);
447
- /// unsafe fn drop_in_place_inner(to_drop: &mut Foo) {
448
- /// // ... drop the fields of `value` ...
449
- /// }
450
- /// }
451
- /// ```
452
- ///
453
- /// This implies that the behavior is undefined if any of the following
454
- /// conditions are violated:
440
+ /// Behavior is undefined if any of the following conditions are violated:
455
441
///
456
442
/// * `to_drop` must be [valid] for both reads and writes.
457
443
///
You can’t perform that action at this time.
0 commit comments