summary refs log tree commit diff
path: root/tests/mir-opt/pre-codegen/intrinsics.f_unit.PreCodegen.after.mir
blob: 3d416de34df8bfac4cc4941a4b7450a25703ec29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// MIR for `f_unit` after PreCodegen

fn f_unit() -> () {
    let mut _0: ();                      // return place in scope 0 at $DIR/intrinsics.rs:+0:17: +0:17
    scope 1 (inlined f_dispatch::<()>) { // at $DIR/intrinsics.rs:13:5: 13:19
        debug t => const ();             // in scope 1 at $DIR/intrinsics.rs:23:22: 23:23
        let _1: ();                      // in scope 1 at $DIR/intrinsics.rs:25:9: 25:17
        scope 2 (inlined std::mem::size_of::<()>) { // at $DIR/intrinsics.rs:24:8: 24:32
        }
    }

    bb0: {
        _1 = f_zst::<()>(const ()) -> [return: bb1, unwind unreachable]; // scope 1 at $DIR/intrinsics.rs:25:9: 25:17
                                         // mir::Constant
                                         // + span: $DIR/intrinsics.rs:25:9: 25:14
                                         // + literal: Const { ty: fn(()) {f_zst::<()>}, val: Value(<ZST>) }
    }

    bb1: {
        return;                          // scope 0 at $DIR/intrinsics.rs:+2:2: +2:2
    }
}