diff options
| author | bors <bors@rust-lang.org> | 2021-12-24 12:34:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-24 12:34:09 +0000 |
| commit | 8529b2a0561dcee254ee1447aa6bd5d69812b697 (patch) | |
| tree | 1118d2b7225a83aacd36d232982ea6b4b01fe238 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 9ae40436d2218f4b9dbdf231565f2732f1511c99 (diff) | |
| parent | 2a47dbc7a67ff691ccfddc7b01d07639215c900b (diff) | |
| download | rust-8529b2a0561dcee254ee1447aa6bd5d69812b697.tar.gz rust-8529b2a0561dcee254ee1447aa6bd5d69812b697.zip | |
Auto merge of #8163 - pmnoxx:piotr-improve-unwrap-or-default, r=Manishearth
Improve `unwrap_or_else_default` when handling `unwrap_or_else(XXX::new)` changelog: change `unwrap_or_else_default` to work with std constructors like `Vec::new`, `HashSet::new`, `HashMap::new`. Notes: - Code to handle detecting those constructors is already there. I moved it out to `is_default_equivalent_call`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
