diff options
| author | bors <bors@rust-lang.org> | 2025-04-29 21:06:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-29 21:06:15 +0000 |
| commit | 0fbb922e530399599aab8296ea975cb9e7ed67bf (patch) | |
| tree | 349bbdee8d04a4735b3bc6f63b59087e3ff911ba /compiler/rustc_parse/src/parser/mod.rs | |
| parent | 74509131e85a97353c67c503ea32e148a56cf4bd (diff) | |
| parent | d0d3021bf830e585e6bb5df43eb4ae90a54ddf31 (diff) | |
| download | rust-0fbb922e530399599aab8296ea975cb9e7ed67bf.tar.gz rust-0fbb922e530399599aab8296ea975cb9e7ed67bf.zip | |
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.
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
0 files changed, 0 insertions, 0 deletions
