]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/inline/inline_compatibility.inlined_target_feature.Inline.diff
Rollup merge of #94657 - fee1-dead:const_slice_index, r=oli-obk
[rust.git] / src / test / mir-opt / inline / inline_compatibility.inlined_target_feature.Inline.diff
1 - // MIR for `inlined_target_feature` before Inline
2 + // MIR for `inlined_target_feature` after Inline
3   
4   fn inlined_target_feature() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/inline-compatibility.rs:12:40: 12:40
6       let _1: ();                          // in scope 0 at $DIR/inline-compatibility.rs:13:5: 13:21
7 +     scope 1 (inlined target_feature) {   // at $DIR/inline-compatibility.rs:13:5: 13:21
8 +     }
9   
10       bb0: {
11           StorageLive(_1);                 // scope 0 at $DIR/inline-compatibility.rs:13:5: 13:21
12 -         _1 = target_feature() -> bb1;    // scope 0 at $DIR/inline-compatibility.rs:13:5: 13:21
13 -                                          // mir::Constant
14 -                                          // + span: $DIR/inline-compatibility.rs:13:5: 13:19
15 -                                          // + literal: Const { ty: unsafe fn() {target_feature}, val: Value(Scalar(<ZST>)) }
16 -     }
17
18 -     bb1: {
19           StorageDead(_1);                 // scope 0 at $DIR/inline-compatibility.rs:13:21: 13:22
20           _0 = const ();                   // scope 0 at $DIR/inline-compatibility.rs:12:40: 14:2
21           return;                          // scope 0 at $DIR/inline-compatibility.rs:14:2: 14:2
22       }
23   }
24