-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Type
Fields
Give feedbackNo fields configured for issues without a type.