core::intrinsics::drop_in_place [] [src]

pub unsafe extern "rust-intrinsic" fn drop_in_place<T: ?Sized>(to_drop: *mut T)
Unstable (drop_in_place #27908)

: just exposed, needs FCP

Executes the destructor (if any) of the pointed-to value.

This has two use cases:

Undefined Behavior

This has all the same safety problems as ptr::read with respect to invalid pointers, types, and double drops.