about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/enum-tuple-documented.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-09-06 10:39:21 +0000
committerbors <bors@rust-lang.org>2021-09-06 10:39:21 +0000
commit1c858ba5bf7bd06c1a970efbf77053c8380b3151 (patch)
tree847426634bf6c1aaed58d2bde1942f1142adcde2 /src/test/rustdoc-ui/coverage/enum-tuple-documented.rs
parentd19d864e79531ad702e4f44b2635da6c50cc5eb0 (diff)
parentad7f109bfaa92f84bbcdbb5d376edfd8e66812fd (diff)
downloadrust-1c858ba5bf7bd06c1a970efbf77053c8380b3151.tar.gz
rust-1c858ba5bf7bd06c1a970efbf77053c8380b3151.zip
Auto merge of #88678 - matthewjasper:if-boolean-scoping, r=oli-obk
Change scope of temporaries in match guards

Each pattern in a match arm has its own copy of the match guard in MIR, with its own temporary, so it has to be dropped before the the guards are joined to the single copy of the arm. This PR changes `then_else_break` to allow it to put the temporary in the innermost scope possible. This change isn't done for `if` expressions because that affects a large number of mir-opt tests and could more significantly affect performance.

closes #88649

r? `@oli-obk`
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple-documented.rs')
0 files changed, 0 insertions, 0 deletions