Skip to content

Commit 50be2a5

Browse files
committed
Auto merge of #140023 - cjgillot:arena-try-alloc, r=BoxyUwU
Introduce Arena::try_alloc_from_iter. `alloc_from_iter` already collects the iterator for reentrancy. So adding an early exit for a fallible iterator integrates naturally into the code. This avoids the other solution to allocate and dump the allocation.
2 parents b6ba160 + 190aa5b commit 50be2a5

0 file changed

File tree

    0 commit comments

    Comments
     (0)