diff options
| author | bors <bors@rust-lang.org> | 2022-03-20 11:20:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-03-20 11:20:26 +0000 |
| commit | c7ce69faf2a7ea16c15d922985ca27ba70da30ee (patch) | |
| tree | 0b498288a7545b780a74c411b8833fe51c8c8a2f /compiler/rustc_codegen_cranelift/src/compiler_builtins.rs | |
| parent | 3b84829750cdd74132530642623a8a5f3a7daaa9 (diff) | |
| parent | 2c3c891df0c4f0c29caee10c7289502ca801ff98 (diff) | |
| download | rust-c7ce69faf2a7ea16c15d922985ca27ba70da30ee.tar.gz rust-c7ce69faf2a7ea16c15d922985ca27ba70da30ee.zip | |
Auto merge of #92962 - frank-king:btree_entry_no_insert, r=Amanieu
BTreeMap::entry: Avoid allocating if no insertion This PR allows the `VacantEntry` to borrow from an empty tree with no root, and to lazily allocate a new root node when the user calls `.insert(value)`.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/compiler_builtins.rs')
0 files changed, 0 insertions, 0 deletions
