blob: 194478560e9294af9b753330d97cd762a11c1f19 (
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
|
- // MIR for `option_payload` before LowerIntrinsics
+ // MIR for `option_payload` after LowerIntrinsics
fn option_payload(_1: &Option<usize>, _2: &Option<String>) -> () {
debug o => _1;
debug p => _2;
let mut _0: ();
let mut _4: *const std::option::Option<usize>;
let mut _6: *const std::option::Option<std::string::String>;
scope 1 {
let _3: *const usize;
scope 2 {
debug _x => _3;
let _5: *const std::string::String;
scope 3 {
debug _y => _5;
}
}
}
bb0: {
StorageLive(_3);
StorageLive(_4);
_4 = &raw const (*_1);
- _3 = option_payload_ptr::<usize>(move _4) -> [return: bb1, unwind unreachable];
+ _3 = &raw const (((*_4) as Some).0: usize);
+ goto -> bb1;
}
bb1: {
StorageDead(_4);
StorageLive(_5);
StorageLive(_6);
_6 = &raw const (*_2);
- _5 = option_payload_ptr::<String>(move _6) -> [return: bb2, unwind unreachable];
+ _5 = &raw const (((*_6) as Some).0: std::string::String);
+ goto -> bb2;
}
bb2: {
StorageDead(_6);
_0 = const ();
StorageDead(_5);
StorageDead(_3);
return;
}
}
|