fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
945 B39 linesraw
1- // MIR for `identity_transmutes` before InstSimplify
2+ // MIR for `identity_transmutes` after InstSimplify
3  
4  fn identity_transmutes() -> () {
5      let mut _0: ();
6      let _1: i32;
7      let mut _3: std::vec::Vec<i32>;
8      scope 1 {
9          debug _a => _1;
10          let _2: std::vec::Vec<i32>;
11          scope 2 {
12              debug _a => _2;
13          }
14      }
15  
16      bb0: {
17          StorageLive(_1);
18-         _1 = const 1_i32 as i32 (Transmute);
19+         _1 = const 1_i32;
20          StorageLive(_2);
21          StorageLive(_3);
22          _3 = Vec::<i32>::new() -> [return: bb1, unwind unreachable];
23      }
24  
25      bb1: {
26-         _2 = move _3 as std::vec::Vec<i32> (Transmute);
27+         _2 = move _3;
28          StorageDead(_3);
29          _0 = const ();
30          drop(_2) -> [return: bb2, unwind unreachable];
31      }
32  
33      bb2: {
34          StorageDead(_2);
35          StorageDead(_1);
36          return;
37      }
38  }
39