File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ pub fn droppy() {
23
23
// FIXME(eddyb) the `void @` forces a match on the instruction, instead of the
24
24
// comment, that's `; call core::ptr::real_drop_in_place::<drop::SomeUniqueName>`
25
25
// 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
26
29
// CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
27
30
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
28
31
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
29
- // CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
30
- // CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
31
32
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
32
- // CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
33
33
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
34
34
// CHECK-NOT: {{(call|invoke) void @.*}}drop_in_place{{.*}}SomeUniqueName
35
35
// The next line checks for the } that ends the function definition
Original file line number Diff line number Diff line change @@ -54,60 +54,60 @@ fn main() {
54
54
// StorageLive(_6);
55
55
// StorageLive(_7);
56
56
// _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 ];
58
58
// }
59
59
// bb2: {
60
60
// StorageDead(_7);
61
61
// StorageDead(_6);
62
62
// StorageLive(_8);
63
63
// StorageLive(_9);
64
64
// _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 ];
66
66
// }
67
67
// bb3: {
68
68
// StorageDead(_9);
69
69
// StorageDead(_8);
70
70
// ...
71
71
// StorageDead(_3);
72
72
// StorageDead(_2);
73
- // drop(_1) -> [return: bb4, unwind: bb9 ];
73
+ // drop(_1) -> [return: bb4, unwind: bb11 ];
74
74
// }
75
75
// bb4: {
76
76
// return;
77
77
// }
78
78
// bb5: {
79
79
// ...
80
80
// StorageDead(_3);
81
- // drop(_2) -> [return: bb6, unwind: bb8 ];
81
+ // drop(_2) -> [return: bb6, unwind: bb12 ];
82
82
// }
83
83
// bb6: {
84
84
// StorageDead(_2);
85
- // drop(_1) -> [return: bb7, unwind: bb9 ];
85
+ // drop(_1) -> [return: bb7, unwind: bb11 ];
86
86
// }
87
87
// bb7: {
88
88
// generator_drop;
89
89
// }
90
90
// bb8 (cleanup): {
91
- // StorageDead(_2);
92
- // drop(_1) -> bb9;
91
+ // StorageDead(_9);
92
+ // StorageDead(_8);
93
+ // goto -> bb10;
93
94
// }
94
95
// bb9 (cleanup): {
95
- // resume;
96
+ // StorageDead(_7);
97
+ // StorageDead(_6);
98
+ // goto -> bb10;
96
99
// }
97
100
// bb10 (cleanup): {
98
- // StorageDead(_9 );
99
- // StorageDead(_8 );
100
- // goto -> bb12 ;
101
+ // StorageDead(_3 );
102
+ // StorageDead(_2 );
103
+ // drop(_1) -> bb11 ;
101
104
// }
102
105
// bb11 (cleanup): {
103
- // StorageDead(_7);
104
- // StorageDead(_6);
105
- // goto -> bb12;
106
+ // resume;
106
107
// }
107
108
// bb12 (cleanup): {
108
- // StorageDead(_3);
109
109
// StorageDead(_2);
110
- // drop(_1) -> bb9 ;
110
+ // drop(_1) -> bb11 ;
111
111
// }
112
112
113
113
// END rustc.main-{{closure}}.StateTransform.before.mir
You can’t perform that action at this time.
0 commit comments