Skip to content

Commit ebe5971

Browse files
committed
Temp: More test changes
1 parent e253d5b commit ebe5971

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/test/codegen/drop.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ pub fn droppy() {
2323
// FIXME(eddyb) the `void @` forces a match on the instruction, instead of the
2424
// comment, that's `; call core::ptr::real_drop_in_place::<drop::SomeUniqueName>`
2525
// for the `v0` mangling, should switch to matching on that once `legacy` is gone.
26+
// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
27+
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
28+
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
2629
// CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
2730
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
2831
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
29-
// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
30-
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
3132
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
32-
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
3333
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
3434
// CHECK-NOT: {{(call|invoke) void @.*}}drop_in_place{{.*}}SomeUniqueName
3535
// The next line checks for the } that ends the function definition

src/test/mir-opt/generator-storage-dead-unwind.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,60 +54,60 @@ fn main() {
5454
// StorageLive(_6);
5555
// StorageLive(_7);
5656
// _7 = move _2;
57-
// _6 = const take::<Foo>(move _7) -> [return: bb2, unwind: bb11];
57+
// _6 = const take::<Foo>(move _7) -> [return: bb2, unwind: bb9];
5858
// }
5959
// bb2: {
6060
// StorageDead(_7);
6161
// StorageDead(_6);
6262
// StorageLive(_8);
6363
// StorageLive(_9);
6464
// _9 = move _3;
65-
// _8 = const take::<Bar>(move _9) -> [return: bb3, unwind: bb10];
65+
// _8 = const take::<Bar>(move _9) -> [return: bb3, unwind: bb8];
6666
// }
6767
// bb3: {
6868
// StorageDead(_9);
6969
// StorageDead(_8);
7070
// ...
7171
// StorageDead(_3);
7272
// StorageDead(_2);
73-
// drop(_1) -> [return: bb4, unwind: bb9];
73+
// drop(_1) -> [return: bb4, unwind: bb11];
7474
// }
7575
// bb4: {
7676
// return;
7777
// }
7878
// bb5: {
7979
// ...
8080
// StorageDead(_3);
81-
// drop(_2) -> [return: bb6, unwind: bb8];
81+
// drop(_2) -> [return: bb6, unwind: bb12];
8282
// }
8383
// bb6: {
8484
// StorageDead(_2);
85-
// drop(_1) -> [return: bb7, unwind: bb9];
85+
// drop(_1) -> [return: bb7, unwind: bb11];
8686
// }
8787
// bb7: {
8888
// generator_drop;
8989
// }
9090
// bb8 (cleanup): {
91-
// StorageDead(_2);
92-
// drop(_1) -> bb9;
91+
// StorageDead(_9);
92+
// StorageDead(_8);
93+
// goto -> bb10;
9394
// }
9495
// bb9 (cleanup): {
95-
// resume;
96+
// StorageDead(_7);
97+
// StorageDead(_6);
98+
// goto -> bb10;
9699
// }
97100
// bb10 (cleanup): {
98-
// StorageDead(_9);
99-
// StorageDead(_8);
100-
// goto -> bb12;
101+
// StorageDead(_3);
102+
// StorageDead(_2);
103+
// drop(_1) -> bb11;
101104
// }
102105
// bb11 (cleanup): {
103-
// StorageDead(_7);
104-
// StorageDead(_6);
105-
// goto -> bb12;
106+
// resume;
106107
// }
107108
// bb12 (cleanup): {
108-
// StorageDead(_3);
109109
// StorageDead(_2);
110-
// drop(_1) -> bb9;
110+
// drop(_1) -> bb11;
111111
// }
112112

113113
// END rustc.main-{{closure}}.StateTransform.before.mir

0 commit comments

Comments
 (0)