about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-06 13:39:31 +0000
committerbors <bors@rust-lang.org>2022-08-06 13:39:31 +0000
commit51705698bd66919435e4fcbc25d96bd7fc5583f4 (patch)
tree56c051f5283efd2328aea8d5c725f31090af8335 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent3792720086faccb3ee085558ad082c979785f437 (diff)
parent10f870eff44f07e3e8dc241e5cc11e0fa4d50ae3 (diff)
downloadrust-51705698bd66919435e4fcbc25d96bd7fc5583f4.tar.gz
rust-51705698bd66919435e4fcbc25d96bd7fc5583f4.zip
Auto merge of #12931 - oxalica:feat/la-arena-apis, r=lnicola
Add more constructors and entry-APIs for la-arena

`la-arena` on crates.io is quite helpful when just a thin wrapper for Vec with u32 indices is needed.
But the current API is not ergonomic enough.

This PR
- Adds `ArenaMap::new`. Not sure why only `Arena` has it now.
- Adds `Arena{,Map}::with_capacity` for known-size storage.
- Adds entry-API for `ArenaMap` for easier `.entry(idx).or_default().push(value)` or `.entry(idx).or_insert(...)` operations.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions