Open
Description
As discussed in #54628 there are some critical optimizations based on fact that type default value can be represented with mem::zeroed()
, such as this vec allocation code.
There is a trait describing this behavior. I propose implementing it for some standard types, such as std::num::Wrapping
or Option
, or even making it public.