blob: 3621338635ed7f47960187d02bcc86863821d115 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
- // MIR for `copies` before ScalarReplacementOfAggregates
+ // MIR for `copies` after ScalarReplacementOfAggregates
fn copies(_1: Foo) -> () {
debug x => _1;
let mut _0: ();
let _2: Foo;
+ let _11: u8;
+ let _12: ();
+ let _13: &str;
+ let _14: std::option::Option<isize>;
scope 1 {
- debug y => _2;
+ debug ((y: Foo).0: u8) => _11;
+ debug ((y: Foo).1: ()) => _12;
+ debug ((y: Foo).2: &str) => _13;
+ debug ((y: Foo).3: std::option::Option<isize>) => _14;
let _3: u8;
scope 2 {
debug t => _3;
let _4: &str;
scope 3 {
debug u => _4;
let _5: Foo;
+ let _7: u8;
+ let _8: ();
+ let _9: &str;
+ let _10: std::option::Option<isize>;
scope 4 {
- debug z => _5;
+ debug ((z: Foo).0: u8) => _7;
+ debug ((z: Foo).1: ()) => _8;
+ debug ((z: Foo).2: &str) => _9;
+ debug ((z: Foo).3: std::option::Option<isize>) => _10;
let _6: ();
scope 5 {
debug a => _6;
}
}
}
}
}
bb0: {
- StorageLive(_2);
- _2 = _1;
+ StorageLive(_11);
+ StorageLive(_12);
+ StorageLive(_13);
+ StorageLive(_14);
+ nop;
+ _11 = (_1.0: u8);
+ _12 = (_1.1: ());
+ _13 = (_1.2: &str);
+ _14 = (_1.3: std::option::Option<isize>);
+ nop;
StorageLive(_3);
- _3 = (_2.0: u8);
+ _3 = _11;
StorageLive(_4);
- _4 = (_2.2: &str);
- StorageLive(_5);
- _5 = _2;
+ _4 = _13;
+ StorageLive(_7);
+ StorageLive(_8);
+ StorageLive(_9);
+ StorageLive(_10);
+ nop;
+ _7 = _11;
+ _8 = _12;
+ _9 = _13;
+ _10 = _14;
+ nop;
StorageLive(_6);
- _6 = (_5.1: ());
+ _6 = _8;
_0 = const ();
StorageDead(_6);
- StorageDead(_5);
+ StorageDead(_7);
+ StorageDead(_8);
+ StorageDead(_9);
+ StorageDead(_10);
+ nop;
StorageDead(_4);
StorageDead(_3);
- StorageDead(_2);
+ StorageDead(_11);
+ StorageDead(_12);
+ StorageDead(_13);
+ StorageDead(_14);
+ nop;
return;
}
}
|