2019-06-04 21:51:30 -04:00
|
|
|
fn main() {
|
|
|
|
let _ = main as usize as *const fn();
|
|
|
|
}
|
|
|
|
|
|
|
|
// END RUST SOURCE
|
|
|
|
// START rustc.main.ConstProp.before.mir
|
|
|
|
// bb0: {
|
|
|
|
// ...
|
|
|
|
// _3 = const main as fn() (Pointer(ReifyFnPointer));
|
|
|
|
// _2 = move _3 as usize (Misc);
|
|
|
|
// ...
|
|
|
|
// _1 = move _2 as *const fn() (Misc);
|
|
|
|
// ...
|
|
|
|
// }
|
|
|
|
// END rustc.main.ConstProp.before.mir
|
|
|
|
// START rustc.main.ConstProp.after.mir
|
|
|
|
// bb0: {
|
|
|
|
// ...
|
2019-11-23 12:25:03 -05:00
|
|
|
// _3 = const main as fn() (Pointer(ReifyFnPointer));
|
2019-06-04 21:51:30 -04:00
|
|
|
// _2 = move _3 as usize (Misc);
|
|
|
|
// ...
|
2019-07-25 10:47:11 +02:00
|
|
|
// _1 = move _2 as *const fn() (Misc);
|
2019-06-04 21:51:30 -04:00
|
|
|
// ...
|
|
|
|
// }
|
|
|
|
// END rustc.main.ConstProp.after.mir
|