We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f238eba commit 853311cCopy full SHA for 853311c
tests/mir-opt/dest-prop/cycle.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
//! Tests that cyclic assignments don't hang DestinationPropagation, and result in reasonable code.
4
//@ unit-test: DestinationPropagation
@@ -8,6 +7,10 @@ fn val() -> i32 {
8
7
9
// EMIT_MIR cycle.main.DestinationPropagation.diff
10
fn main() {
+ // CHECK-LABEL: main(
11
+ // CHECK: debug x => [[x:_.*]];
12
+ // CHECK: [[x]] = val()
13
+ // CHECK-NOT: [[x]] = {{_.*}};
14
let mut x = val();
15
let y = x;
16
let z = y;
0 commit comments