fork/rust

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

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

master
860 B37 linesraw
1- // MIR for `main` before ConstProp
2+ // MIR for `main` after ConstProp
3  
4  fn main() -> () {
5      let mut _0: ();
6      let mut _1: (i32, i32);
7      scope 1 {
8          debug x => _1;
9          let _2: (i32, i32);
10          scope 2 {
11              debug y => _2;
12          }
13      }
14  
15      bb0: {
16          StorageLive(_1);
17-         _1 = (const 42_i32, const 43_i32);
18+         _1 = const (42_i32, 43_i32);
19          (_1.1: i32) = const 99_i32;
20          StorageLive(_2);
21-         _2 = _1;
22+         _2 = const (42_i32, 99_i32);
23          _0 = const ();
24          StorageDead(_2);
25          StorageDead(_1);
26          return;
27      }
28+ }
29+ 
30+ alloc7 (size: 8, align: 4) {
31+     2a 00 00 00 63 00 00 00                         │ *...c...
32+ }
33+ 
34+ alloc5 (size: 8, align: 4) {
35+     2a 00 00 00 2b 00 00 00                         │ *...+...
36  }
37