You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
mem::forgetis just a thin wrapper aroundManuallyDrop::newwhich is already a const fn.mem::forgetcan 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.