about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-16 01:48:01 +0000
committerbors <bors@rust-lang.org>2021-08-16 01:48:01 +0000
commit3f0c97740f10372a6dc8a085eba571822911afc7 (patch)
tree2dc77ba66f61affddca0f576cd743b097ab24fec /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentd4e2fcabb1cd69ecea19c6f8503ca86a34a183ec (diff)
parentf0444d73def161f7f0fda7b3f5a13e9908e9c550 (diff)
downloadrust-3f0c97740f10372a6dc8a085eba571822911afc7.tar.gz
rust-3f0c97740f10372a6dc8a085eba571822911afc7.zip
Auto merge of #7531 - Jarcho:manual_map_7413, r=camsteffen
Manual map 7413

fixes: #7413

This only fixes the specific problem from #7413, not the general case. The full fix requires interacting with the borrow checker to determine the lifetime of all the borrows made in the function. I'll open an issue about it later.

changelog: Don't suggest using `map` when the option is borrowed in the match, and also consumed in the arm.
changelog: Locals declared within the would-be closure will not prevent the closure from being suggested in `manual_map` and `map_entry`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions