fork/rust

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

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

master
958 B39 linesraw
1- // MIR for `main` before ConstProp
2+ // MIR for `main` after ConstProp
3  
4  fn main() -> () {
5      let mut _0: ();
6      let _1: ();
7      let mut _2: ((u8, u8),);
8      let mut _3: (u8, u8);
9  
10      bb0: {
11          StorageLive(_2);
12          StorageLive(_3);
13-         _3 = (const 1_u8, const 2_u8);
14-         _2 = (move _3,);
15+         _3 = const (1_u8, 2_u8);
16+         _2 = const ((1_u8, 2_u8),);
17          StorageDead(_3);
18-         _1 = test(move _2) -> [return: bb1, unwind continue];
19+         _1 = test(const ((1_u8, 2_u8),)) -> [return: bb1, unwind continue];
20      }
21  
22      bb1: {
23          StorageDead(_2);
24          return;
25      }
26+ }
27+ 
28+ alloc12 (size: 2, align: 1) {
29+     01 02                                           │ ..
30+ }
31+ 
32+ alloc11 (size: 2, align: 1) {
33+     01 02                                           │ ..
34+ }
35+ 
36+ alloc8 (size: 2, align: 1) {
37+     01 02                                           │ ..
38  }
39