Skip to content

Conversation

@eggyal
Copy link
Contributor

@eggyal eggyal commented Feb 6, 2026

Dropping the Drain used by the array::[try_]map functions should drop any pending elements, whether they are ZST or not.

Fixes #152211
r? libs

Dropping the `Drain` used by the `array::[try_]map` functions should
drop any pending elements, whether they are ZST or not.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

array::map and array::try_map do not drop ZSTs properly

3 participants