about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-20 11:20:26 +0000
committerbors <bors@rust-lang.org>2022-03-20 11:20:26 +0000
commitc7ce69faf2a7ea16c15d922985ca27ba70da30ee (patch)
tree0b498288a7545b780a74c411b8833fe51c8c8a2f /compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
parent3b84829750cdd74132530642623a8a5f3a7daaa9 (diff)
parent2c3c891df0c4f0c29caee10c7289502ca801ff98 (diff)
downloadrust-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