diff options
| author | bors <bors@rust-lang.org> | 2017-09-12 09:54:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-12 09:54:59 +0000 |
| commit | 817e1b81e230d599585f860cdcad96c5ed83b93e (patch) | |
| tree | c8b45bc0eaa2d61bf3b1dbbd941b41dbefcc9f31 /src/rustllvm/RustWrapper.cpp | |
| parent | 8fc0fc8c2d9718f8b664afca8e28636a6099e2b8 (diff) | |
| parent | 9389d26ba261119bec1dc5336d17ce23c34785b7 (diff) | |
| download | rust-817e1b81e230d599585f860cdcad96c5ed83b93e.tar.gz rust-817e1b81e230d599585f860cdcad96c5ed83b93e.zip | |
Auto merge of #44344 - jonhoo:entry_or_default, r=BurntSushi
Add or_default to Entry APIs As argued for in #44324, this PR adds a new `or_default` method to the various `Entry` APIs (currently just for `BTreeMap` and `HashMap`) when `V: Default`. This method is effectively a shorthand for `or_insert_with(Default::default)`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
