]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / mir-opt / lower_intrinsics.f_unit.PreCodegen.before.mir
CommitLineData
fc512014
XL
1// MIR for `f_unit` before PreCodegen
2
3fn f_unit() -> () {
c295e0f8
XL
4 let mut _0: (); // return place in scope 0 at $DIR/lower_intrinsics.rs:33:17: 33:17
5 let mut _1: (); // in scope 0 at $DIR/lower_intrinsics.rs:34:16: 34:18
6 scope 1 (inlined f_dispatch::<()>) { // at $DIR/lower_intrinsics.rs:34:5: 34:19
ee023bcb
FG
7 debug t => _1; // in scope 1 at $DIR/lower_intrinsics.rs:44:22: 44:23
8 let _2: (); // in scope 1 at $DIR/lower_intrinsics.rs:46:9: 46:17
9 scope 2 (inlined std::mem::size_of::<()>) { // at $DIR/lower_intrinsics.rs:45:8: 45:32
fc512014
XL
10 }
11 }
12
13 bb0: {
c295e0f8 14 StorageLive(_1); // scope 0 at $DIR/lower_intrinsics.rs:34:16: 34:18
ee023bcb
FG
15 StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:46:9: 46:17
16 _2 = f_zst::<()>(const ()) -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:46:9: 46:17
fc512014 17 // mir::Constant
ee023bcb 18 // + span: $DIR/lower_intrinsics.rs:46:9: 46:14
fc512014
XL
19 // + literal: Const { ty: fn(()) {f_zst::<()>}, val: Value(Scalar(<ZST>)) }
20 }
21
22 bb1: {
ee023bcb 23 StorageDead(_2); // scope 1 at $DIR/lower_intrinsics.rs:46:17: 46:18
c295e0f8
XL
24 StorageDead(_1); // scope 0 at $DIR/lower_intrinsics.rs:34:18: 34:19
25 return; // scope 0 at $DIR/lower_intrinsics.rs:35:2: 35:2
fc512014
XL
26 }
27}