Skip to content

Commit ebbccc6

Browse files
committed
bless tests
1 parent 68c690e commit ebbccc6

File tree

357 files changed

+1819
-1819
lines changed

Some content is hidden

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

357 files changed

+1819
-1819
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-elaborate-drops.after.panic-unwind.mir

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

4242
bb1: {
4343
StorageDead(_6);
4444
StorageLive(_7);
45-
_7 = _2;
45+
_7 = copy _2;
4646
_8 = Len(_1);
47-
_9 = Lt(_7, _8);
48-
assert(move _9, "index out of bounds: the length is {} but the index is {}", move _8, _7) -> [success: bb2, unwind continue];
47+
_9 = Lt(copy _7, copy _8);
48+
assert(move _9, "index out of bounds: the length is {} but the index is {}", move _8, copy _7) -> [success: bb2, unwind continue];
4949
}
5050

5151
bb2: {

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#0}-{closure#0}.coroutine_by_mut.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#0}.coroutine_closure_by_mut.0.panic-unwind.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn main::{closure#0}::{closure#0}(_1: &mut {async closure@$DIR/async_closure_shi
99
bb0: {
1010
StorageLive(_3);
1111
_3 = &((*_1).0: i32);
12-
_0 = {coroutine@$DIR/async_closure_shims.rs:39:53: 42:10 (#0)} { a: _2, b: move _3 };
12+
_0 = {coroutine@$DIR/async_closure_shims.rs:39:53: 42:10 (#0)} { a: copy _2, b: move _3 };
1313
StorageDead(_3);
1414
return;
1515
}

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);

tests/mir-opt/basic_assignment.main.SimplifyCfg-initial.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn main() -> () {
3131
FakeRead(ForLet(None), _1);
3232
StorageLive(_2);
3333
StorageLive(_3);
34-
_3 = _1;
34+
_3 = copy _1;
3535
_2 = move _3;
3636
StorageDead(_3);
3737
StorageLive(_4);

tests/mir-opt/building/async_await.b-{closure#0}.coroutine_resume.0.mir

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:15:18: 18:2}>,
149149
StorageLive(_13);
150150
StorageLive(_14);
151151
StorageLive(_15);
152-
_15 = _38;
152+
_15 = copy _38;
153153
_14 = move _15;
154154
goto -> bb6;
155155
}
@@ -192,8 +192,8 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:15:18: 18:2}>,
192192

193193
bb10: {
194194
StorageLive(_17);
195-
_17 = ((_9 as Ready).0: ());
196-
_3 = _17;
195+
_17 = copy ((_9 as Ready).0: ());
196+
_3 = copy _17;
197197
StorageDead(_17);
198198
StorageDead(_14);
199199
StorageDead(_12);
@@ -251,7 +251,7 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:15:18: 18:2}>,
251251
StorageLive(_29);
252252
StorageLive(_30);
253253
StorageLive(_31);
254-
_31 = _38;
254+
_31 = copy _38;
255255
_30 = move _31;
256256
goto -> bb18;
257257
}
@@ -289,8 +289,8 @@ fn b::{closure#0}(_1: Pin<&mut {async fn body@$DIR/async_await.rs:15:18: 18:2}>,
289289

290290
bb21: {
291291
StorageLive(_33);
292-
_33 = ((_25 as Ready).0: ());
293-
_37 = _33;
292+
_33 = copy ((_25 as Ready).0: ());
293+
_37 = copy _33;
294294
StorageDead(_33);
295295
StorageDead(_30);
296296
StorageDead(_28);

tests/mir-opt/building/custom/aggregate_exprs.adt.built.after.mir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ fn adt() -> Onion {
99
bb0: {
1010
_1 = const 1_i32;
1111
_2 = Foo { a: const 1_i32, b: const 2_i32 };
12-
_3 = Bar::Foo(move _2, _1);
13-
_0 = Onion { neon: ((_3 as variant#0).1: i32) };
12+
_3 = Bar::Foo(move _2, copy _1);
13+
_0 = Onion { neon: copy ((_3 as variant#0).1: i32) };
1414
return;
1515
}
1616
}

tests/mir-opt/building/custom/aggregate_exprs.array.built.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn array() -> [i32; 2] {
88
bb0: {
99
_1 = [const 42_i32, const 43_i32];
1010
_2 = const 1_i32;
11-
_1 = [_2, const 2_i32];
11+
_1 = [copy _2, const 2_i32];
1212
_0 = move _1;
1313
return;
1414
}

0 commit comments

Comments
 (0)