]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/copy_propagation_arg.baz.CopyPropagation.diff
Fix font color for help button in ayu and dark themes
[rust.git] / src / test / mir-opt / copy_propagation_arg.baz.CopyPropagation.diff
1 - // MIR for `baz` before CopyPropagation
2 + // MIR for `baz` after CopyPropagation
3   
4   fn baz(_1: i32) -> () {
5       debug x => _1;                       // in scope 0 at $DIR/copy_propagation_arg.rs:21:8: 21:13
6       let mut _0: ();                      // return place in scope 0 at $DIR/copy_propagation_arg.rs:21:20: 21:20
7       let mut _2: i32;                     // in scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
8   
9       bb0: {
10           StorageLive(_2);                 // scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
11           _2 = _1;                         // scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
12           _1 = move _2;                    // scope 0 at $DIR/copy_propagation_arg.rs:23:5: 23:10
13           StorageDead(_2);                 // scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10
14           _0 = const ();                   // scope 0 at $DIR/copy_propagation_arg.rs:21:20: 24:2
15                                            // ty::Const
16                                            // + ty: ()
17                                            // + val: Value(Scalar(<ZST>))
18                                            // mir::Constant
19                                            // + span: $DIR/copy_propagation_arg.rs:21:20: 24:2
20                                            // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
21           return;                          // scope 0 at $DIR/copy_propagation_arg.rs:24:2: 24:2
22       }
23   }
24