fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
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); // bb0[0]: scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10 11 _2 = _1; // bb0[1]: scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10 12 _1 = move _2; // bb0[2]: scope 0 at $DIR/copy_propagation_arg.rs:23:5: 23:10 13 StorageDead(_2); // bb0[3]: scope 0 at $DIR/copy_propagation_arg.rs:23:9: 23:10 14 _0 = const (); // bb0[4]: 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; // bb0[5]: scope 0 at $DIR/copy_propagation_arg.rs:24:2: 24:2 22 } 23 } 24