]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir
Auto merge of #88469 - patrick-gu:master, r=dtolnay
[rust.git] / src / test / mir-opt / lower_intrinsics.f_unit.PreCodegen.before.mir
1 // MIR for `f_unit` before PreCodegen
2
3 fn f_unit() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/lower_intrinsics.rs:28:17: 28:17
5     let mut _1: ();                      // in scope 0 at $DIR/lower_intrinsics.rs:29:16: 29:18
6     scope 1 (inlined f_dispatch::<()>) { // at $DIR/lower_intrinsics.rs:29:5: 29:19
7         debug t => _1;                   // in scope 1 at $DIR/lower_intrinsics.rs:29:5: 29:19
8         let _2: ();                      // in scope 1 at $DIR/lower_intrinsics.rs:29:5: 29:19
9         scope 2 (inlined std::mem::size_of::<()>) { // at $DIR/lower_intrinsics.rs:29:5: 29:19
10         }
11     }
12
13     bb0: {
14         StorageLive(_1);                 // scope 0 at $DIR/lower_intrinsics.rs:29:16: 29:18
15         StorageLive(_2);                 // scope 1 at $DIR/lower_intrinsics.rs:29:5: 29:19
16         _2 = f_zst::<()>(const ()) -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:29:5: 29:19
17                                          // mir::Constant
18                                          // + span: $DIR/lower_intrinsics.rs:29:5: 29:19
19                                          // + literal: Const { ty: fn(()) {f_zst::<()>}, val: Value(Scalar(<ZST>)) }
20     }
21
22     bb1: {
23         StorageDead(_2);                 // scope 1 at $DIR/lower_intrinsics.rs:29:5: 29:19
24         StorageDead(_1);                 // scope 0 at $DIR/lower_intrinsics.rs:29:18: 29:19
25         return;                          // scope 0 at $DIR/lower_intrinsics.rs:30:2: 30:2
26     }
27 }