about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-24 12:34:09 +0000
committerbors <bors@rust-lang.org>2021-12-24 12:34:09 +0000
commit8529b2a0561dcee254ee1447aa6bd5d69812b697 (patch)
tree1118d2b7225a83aacd36d232982ea6b4b01fe238 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent9ae40436d2218f4b9dbdf231565f2732f1511c99 (diff)
parent2a47dbc7a67ff691ccfddc7b01d07639215c900b (diff)
downloadrust-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 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions