summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/inline/inline_trait_method.test.Inline.after.mir
blob: 637bf282a65bfa9659743fbbdc20aed45cd542a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// MIR for `test` after Inline

fn test(_1: &dyn X) -> u32 {
    debug x => _1;                       // in scope 0 at $DIR/inline_trait_method.rs:+0:9: +0:10
    let mut _0: u32;                     // return place in scope 0 at $DIR/inline_trait_method.rs:+0:23: +0:26
    let mut _2: &dyn X;                  // in scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10

    bb0: {
        StorageLive(_2);                 // scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10
        _2 = &(*_1);                     // scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10
        _0 = <dyn X as X>::y(move _2) -> bb1; // scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10
                                         // mir::Constant
                                         // + span: $DIR/inline_trait_method.rs:9:7: 9:8
                                         // + literal: Const { ty: for<'a> fn(&'a dyn X) -> u32 {<dyn X as X>::y}, val: Value(<ZST>) }
    }

    bb1: {
        StorageDead(_2);                 // scope 0 at $DIR/inline_trait_method.rs:+1:9: +1:10
        return;                          // scope 0 at $DIR/inline_trait_method.rs:+2:2: +2:2
    }
}