diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-12-19 15:15:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-19 15:15:57 +0900 |
| commit | 0765536c0be31100eaa4bf6d00274bbad280621c (patch) | |
| tree | dcfa22376240fd950cdce2961883900a9153fbb0 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | d1741e59cb87d3c8c794eebf6d5430d1b383f51f (diff) | |
| parent | f115be93abd2634f3d71d91bf1341e9860a87056 (diff) | |
| download | rust-0765536c0be31100eaa4bf6d00274bbad280621c.tar.gz rust-0765536c0be31100eaa4bf6d00274bbad280621c.zip | |
Rollup merge of #78083 - ChaiTRex:master, r=m-ou-se
Stabilize or_insert_with_key Stabilizes the `or_insert_with_key` feature from https://github.com/rust-lang/rust/issues/71024. This allows inserting key-derived values when a `HashMap`/`BTreeMap` entry is vacant. The difference between this and `.or_insert_with(|| ... )` is that this provides a reference to the key to the closure after it is moved with `.entry(key_being_moved)`, avoiding the need to copy or clone the key.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
