[tracking issue] const fn mem::forget #69616
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
mem::forget
is just a thin wrapper aroundManuallyDrop::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.The text was updated successfully, but these errors were encountered: