about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-09-06 08:36:03 +0900
committerGitHub <noreply@github.com>2022-09-06 08:36:03 +0900
commit0e6747fb2538d394ede02210fff4e77afb5aec2e (patch)
tree6017fe22d2a5b9c8a594c3c65717da2b71bd9425 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb44197abb0b3ffe4908892e1e08ab1cd721ff3b9 (diff)
parent2d8460ef43d902f34ba2133fe38f66ee8d2fdafc (diff)
downloadrust-0e6747fb2538d394ede02210fff4e77afb5aec2e.tar.gz
rust-0e6747fb2538d394ede02210fff4e77afb5aec2e.zip
Rollup merge of #99291 - est31:let_else_tests, r=joshtriplett
Add let else drop order tests

Add a systematic matrix based test that checks temporary drop order in various settings, `let-else-drop-order.rs`, as requested [here](https://github.com/rust-lang/rust/pull/93628#issuecomment-1055738523).

The drop order of let and let else is supposed to be the and in order to ensure this, the test checks that this holds for a number of cases.

The test also ensures that we drop the temporaries of the condition before executing the else block.

cc #87335 tracking issue for `let else`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions