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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
274 B
Rust
Raw Normal View History

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: 1141ms Template: 3ms
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