about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-14 20:29:56 +0000
committerbors <bors@rust-lang.org>2021-07-14 20:29:56 +0000
commit2b193e247f108c303d2ef9818ddd4aadceaf5760 (patch)
tree1c9a95cb99116b5a8a8186eec9ae077cad242494 /compiler/rustc_mir/src/transform/coverage/graph.rs
parent4acbff9eb05a15008d33fd7558670fc3b2338461 (diff)
parent61e280863fb68c26bb1f976acfa4a45a26d70545 (diff)
downloadrust-2b193e247f108c303d2ef9818ddd4aadceaf5760.tar.gz
rust-2b193e247f108c303d2ef9818ddd4aadceaf5760.zip
Auto merge of #7462 - xFrednet:7369-branches-sharing-code-else-expr-fp, r=camsteffen
FP fix and documentation for `branches_sharing_code` lint

Closes rust-lang/rust-clippy#7369

Related rust-lang/rust-clippy#7452 I'm still thinking about the best way to fix this. I could simply add another visitor to ensure that the moved expressions don't modify values being used in the condition, but I'm not totally happy with this due to the complexity. I therefore only documented it for now

changelog: [`branches_sharing_code`] fixed false positive where block expressions would sometimes be ignored.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions