Skip to content

Commit eddd755

Browse files
committed
Bless ui.
1 parent fe3a784 commit eddd755

File tree

2 files changed

+21
-25
lines changed

2 files changed

+21
-25
lines changed

tests/ui/rustc_public-ir-print/async-closure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ compile-flags: -Z unpretty=stable-mir --crate-type lib -C panic=abort -Zmir-opt-level=0
22
//@ check-pass
3-
//@ only-x86_64
3+
//@ only-64bit
44
//@ edition: 2024
55
//@ needs-unwind unwind edges are different with panic=abort
66

tests/ui/rustc_public-ir-print/async-closure.stdout

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,28 @@ fn foo::{closure#0}::{closure#0}(_1: Pin<&mut {async closure body@$DIR/async-clo
4040
let _3: i32;
4141
let mut _4: &i32;
4242
let mut _5: ();
43-
let mut _6: &mut Context<'_>;
44-
let mut _7: u32;
43+
let mut _6: u32;
44+
let mut _7: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
4545
let mut _8: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
4646
let mut _9: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
47-
let mut _10: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
48-
debug _task_context => _6;
47+
debug _task_context => _2;
4948
debug y => (*((*(_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6})).0: &i32));
5049
debug y => _3;
5150
bb0: {
52-
_8 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
53-
_7 = discriminant((*_8));
54-
switchInt(move _7) -> [0: bb1, 1: bb2, otherwise: bb3];
51+
_7 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
52+
_6 = discriminant((*_7));
53+
switchInt(move _6) -> [0: bb1, 1: bb2, otherwise: bb3];
5554
}
5655
bb1: {
57-
_6 = move _2;
5856
StorageLive(_3);
59-
_9 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
60-
_4 = CopyForDeref(((*_9).0: &i32));
57+
_8 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
58+
_4 = CopyForDeref(((*_8).0: &i32));
6159
_3 = (*_4);
6260
_5 = ();
6361
StorageDead(_3);
6462
_0 = std::task::Poll::Ready(move _5);
65-
_10 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
66-
discriminant((*_10)) = 1;
63+
_9 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
64+
discriminant((*_9)) = 1;
6765
return;
6866
}
6967
bb2: {
@@ -78,30 +76,28 @@ fn foo::{closure#0}::{synthetic#0}(_1: Pin<&mut {async closure body@$DIR/async-c
7876
let _3: i32;
7977
let mut _4: &i32;
8078
let mut _5: ();
81-
let mut _6: &mut Context<'_>;
82-
let mut _7: u32;
79+
let mut _6: u32;
80+
let mut _7: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
8381
let mut _8: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
8482
let mut _9: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
85-
let mut _10: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6};
86-
debug _task_context => _6;
83+
debug _task_context => _2;
8784
debug y => (*((*(_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6})).0: &i32));
8885
debug y => _3;
8986
bb0: {
90-
_8 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
91-
_7 = discriminant((*_8));
92-
switchInt(move _7) -> [0: bb1, 1: bb2, otherwise: bb3];
87+
_7 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
88+
_6 = discriminant((*_7));
89+
switchInt(move _6) -> [0: bb1, 1: bb2, otherwise: bb3];
9390
}
9491
bb1: {
95-
_6 = move _2;
9692
StorageLive(_3);
97-
_9 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
98-
_4 = CopyForDeref(((*_9).0: &i32));
93+
_8 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
94+
_4 = CopyForDeref(((*_8).0: &i32));
9995
_3 = (*_4);
10096
_5 = ();
10197
StorageDead(_3);
10298
_0 = std::task::Poll::Ready(move _5);
103-
_10 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
104-
discriminant((*_10)) = 1;
99+
_9 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
100+
discriminant((*_9)) = 1;
105101
return;
106102
}
107103
bb2: {

0 commit comments

Comments
 (0)