Closed
Description
mem::forget
is just a thin wrapper around ManuallyDrop::new
which is already a const fn. mem::forget
can thus also be a const fn. The usage would be in const functions dealing with generics where you dont want the generics to get dropped.
- implementation (constify mem::forget #69617)
- documentation
- stabilization