blob: e7aa015d078ecfecc289d7f6c237aabe970f58ff (
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
|
- // MIR for `main` before ConstProp
+ // MIR for `main` after ConstProp
fn main() -> () {
let mut _0: ();
let mut _1: *const fn();
let mut _2: usize;
let mut _3: fn();
scope 1 {
}
bb0: {
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
_3 = main as fn() (PointerCoercion(ReifyFnPointer));
_2 = move _3 as usize (PointerExposeAddress);
StorageDead(_3);
_1 = move _2 as *const fn() (PointerFromExposedAddress);
StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
}
}
|