Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/mir-opt/issue_38669.rs

14 lines
292 B
Rust
Raw Normal View History

Allow to run filecheck in mir-opt tests.
2023-10-16 17:36:39 +00:00
// skip-filecheck
make operands live to the end of their containing expression In MIR construction, operands need to live exactly until they are used, which is during the (sub)expression that made the call to `as_operand`. Before this PR, operands lived until the end of the temporary scope, which was sometimes unnecessarily longer and sometimes too short. Fixes #38669.
2017-02-26 16:21:08 +02:00
// check that we don't StorageDead booleans before they are used
add crate name to mir dumps
2020-07-27 21:22:43 +02:00
// EMIT_MIR issue_38669.main.SimplifyCfg-initial.after.mir
make operands live to the end of their containing expression In MIR construction, operands need to live exactly until they are used, which is during the (sub)expression that made the call to `as_operand`. Before this PR, operands lived until the end of the temporary scope, which was sometimes unnecessarily longer and sometimes too short. Fixes #38669.
2017-02-26 16:21:08 +02:00
fn main() {
let mut should_break = false;
loop {
if should_break {
break;
}
should_break = true;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5314ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API