Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 99cb0c6

Browse files
committed
Bless *all* the mir-opt tests
1 parent 249a36f commit 99cb0c6

File tree

678 files changed

+3567
-3567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

678 files changed

+3567
-3567
lines changed

tests/mir-opt/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn address_of_reborrow() -> () {
140140
StorageLive(_6);
141141
_6 = &raw const (*_1);
142142
AscribeUserType(_6, o, UserTypeProjection { base: UserType(0), projs: [] });
143-
_5 = _6;
143+
_5 = copy _6;
144144
StorageDead(_6);
145145
StorageDead(_5);
146146
StorageLive(_7);
@@ -153,7 +153,7 @@ fn address_of_reborrow() -> () {
153153
_9 = move _10 as *const dyn std::marker::Send (PointerCoercion(Unsize));
154154
StorageDead(_10);
155155
AscribeUserType(_9, o, UserTypeProjection { base: UserType(1), projs: [] });
156-
_8 = _9;
156+
_8 = copy _9;
157157
StorageDead(_9);
158158
StorageDead(_8);
159159
StorageLive(_11);
@@ -194,7 +194,7 @@ fn address_of_reborrow() -> () {
194194
StorageLive(_22);
195195
_22 = &raw const (*_3);
196196
AscribeUserType(_22, o, UserTypeProjection { base: UserType(10), projs: [] });
197-
_21 = _22;
197+
_21 = copy _22;
198198
StorageDead(_22);
199199
StorageDead(_21);
200200
StorageLive(_23);
@@ -207,7 +207,7 @@ fn address_of_reborrow() -> () {
207207
_25 = move _26 as *const dyn std::marker::Send (PointerCoercion(Unsize));
208208
StorageDead(_26);
209209
AscribeUserType(_25, o, UserTypeProjection { base: UserType(11), projs: [] });
210-
_24 = _25;
210+
_24 = copy _25;
211211
StorageDead(_25);
212212
StorageDead(_24);
213213
StorageLive(_27);
@@ -242,7 +242,7 @@ fn address_of_reborrow() -> () {
242242
StorageLive(_36);
243243
_36 = &raw mut (*_3);
244244
AscribeUserType(_36, o, UserTypeProjection { base: UserType(20), projs: [] });
245-
_35 = _36;
245+
_35 = copy _36;
246246
StorageDead(_36);
247247
StorageDead(_35);
248248
StorageLive(_37);
@@ -255,7 +255,7 @@ fn address_of_reborrow() -> () {
255255
_39 = move _40 as *mut dyn std::marker::Send (PointerCoercion(Unsize));
256256
StorageDead(_40);
257257
AscribeUserType(_39, o, UserTypeProjection { base: UserType(21), projs: [] });
258-
_38 = _39;
258+
_38 = copy _39;
259259
StorageDead(_39);
260260
StorageDead(_38);
261261
StorageLive(_41);

tests/mir-opt/array_index_is_temporary.main.SimplifyCfg-pre-optimizations.after.panic-abort.mir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ fn main() -> () {
3333
StorageDead(_4);
3434
StorageLive(_5);
3535
StorageLive(_6);
36-
_6 = _3;
36+
_6 = copy _3;
3737
_5 = foo(move _6) -> [return: bb1, unwind unreachable];
3838
}
3939

4040
bb1: {
4141
StorageDead(_6);
4242
StorageLive(_7);
43-
_7 = _2;
43+
_7 = copy _2;
4444
_8 = Len(_1);
45-
_9 = Lt(_7, _8);
46-
assert(move _9, "index out of bounds: the length is {} but the index is {}", move _8, _7) -> [success: bb2, unwind unreachable];
45+
_9 = Lt(copy _7, copy _8);
46+
assert(move _9, "index out of bounds: the length is {} but the index is {}", move _8, copy _7) -> [success: bb2, unwind unreachable];
4747
}
4848

4949
bb2: {

tests/mir-opt/array_index_is_temporary.main.SimplifyCfg-pre-optimizations.after.panic-unwind.mir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ fn main() -> () {
3333
StorageDead(_4);
3434
StorageLive(_5);
3535
StorageLive(_6);
36-
_6 = _3;
36+
_6 = copy _3;
3737
_5 = foo(move _6) -> [return: bb1, unwind continue];
3838
}
3939

4040
bb1: {
4141
StorageDead(_6);
4242
StorageLive(_7);
43-
_7 = _2;
43+
_7 = copy _2;
4444
_8 = Len(_1);
45-
_9 = Lt(_7, _8);
46-
assert(move _9, "index out of bounds: the length is {} but the index is {}", move _8, _7) -> [success: bb2, unwind continue];
45+
_9 = Lt(copy _7, copy _8);
46+
assert(move _9, "index out of bounds: the length is {} but the index is {}", move _8, copy _7) -> [success: bb2, unwind continue];
4747
}
4848

4949
bb2: {

tests/mir-opt/async_closure_shims.main-{closure#0}-{closure#0}-{closure#0}.coroutine_by_move.0.panic-abort.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yields ()
2222

2323
bb0: {
2424
StorageLive(_3);
25-
_3 = (_1.0: i32);
25+
_3 = copy (_1.0: i32);
2626
FakeRead(ForLet(None), _3);
2727
StorageLive(_4);
2828
_4 = &_3;

tests/mir-opt/async_closure_shims.main-{closure#0}-{closure#0}-{closure#0}.coroutine_by_move.0.panic-unwind.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yields ()
2222

2323
bb0: {
2424
StorageLive(_3);
25-
_3 = (_1.0: i32);
25+
_3 = copy (_1.0: i32);
2626
FakeRead(ForLet(None), _3);
2727
StorageLive(_4);
2828
_4 = &_3;

tests/mir-opt/async_closure_shims.main-{closure#0}-{closure#1}-{closure#0}.coroutine_by_move.0.panic-abort.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yields ()
2222

2323
bb0: {
2424
StorageLive(_3);
25-
_3 = (_1.0: i32);
25+
_3 = copy (_1.0: i32);
2626
FakeRead(ForLet(None), _3);
2727
StorageLive(_4);
2828
_4 = &_3;

tests/mir-opt/async_closure_shims.main-{closure#0}-{closure#1}-{closure#0}.coroutine_by_move.0.panic-unwind.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yields ()
2222

2323
bb0: {
2424
StorageLive(_3);
25-
_3 = (_1.0: i32);
25+
_3 = copy (_1.0: i32);
2626
FakeRead(ForLet(None), _3);
2727
StorageLive(_4);
2828
_4 = &_3;

tests/mir-opt/async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_ref.0.panic-abort.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fn main::{closure#0}::{closure#1}(_1: &{async closure@$DIR/async_closure_shims.r
44
let mut _0: {async closure body@$DIR/async_closure_shims.rs:62:48: 65:10};
55

66
bb0: {
7-
_0 = {coroutine@$DIR/async_closure_shims.rs:62:48: 65:10 (#0)} { a: move _2, b: ((*_1).0: &i32) };
7+
_0 = {coroutine@$DIR/async_closure_shims.rs:62:48: 65:10 (#0)} { a: move _2, b: copy ((*_1).0: &i32) };
88
return;
99
}
1010
}

tests/mir-opt/async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_ref.0.panic-unwind.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fn main::{closure#0}::{closure#1}(_1: &{async closure@$DIR/async_closure_shims.r
44
let mut _0: {async closure body@$DIR/async_closure_shims.rs:62:48: 65:10};
55

66
bb0: {
7-
_0 = {coroutine@$DIR/async_closure_shims.rs:62:48: 65:10 (#0)} { a: move _2, b: ((*_1).0: &i32) };
7+
_0 = {coroutine@$DIR/async_closure_shims.rs:62:48: 65:10 (#0)} { a: move _2, b: copy ((*_1).0: &i32) };
88
return;
99
}
1010
}

tests/mir-opt/basic_assignment.main.ElaborateDrops.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
_1 = const false;
2828
StorageLive(_2);
2929
StorageLive(_3);
30-
_3 = _1;
30+
_3 = copy _1;
3131
_2 = move _3;
3232
StorageDead(_3);
3333
StorageLive(_4);

0 commit comments

Comments
 (0)