Closed
Description
When a arena::TypedArena
is dropped, it uses std::intrinsics::needs_drop
to skip entirely the loop that reads items and runs their destructors.
Vec
however does no such thing, and runs a similar loop unconditionally. Should it check needs_drop
as well, or can we rely on the loop being optimized away entirely when it does nothing?