fork/rust

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

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

master
1.1 KiB47 linesraw
1- // MIR for `constant` before ScalarReplacementOfAggregates
2+ // MIR for `constant` after ScalarReplacementOfAggregates
3  
4  fn constant() -> () {
5      let mut _0: ();
6      let _1: (usize, u8);
7+     let _4: usize;
8+     let _5: u8;
9      scope 1 {
10-         debug y => _1;
11+         debug ((y: (usize, u8)).0: usize) => _4;
12+         debug ((y: (usize, u8)).1: u8) => _5;
13          let _2: usize;
14          scope 2 {
15              debug t => _2;
16              let _3: u8;
17              scope 3 {
18                  debug u => _3;
19              }
20          }
21      }
22  
23      bb0: {
24-         StorageLive(_1);
25+         StorageLive(_4);
26+         StorageLive(_5);
27+         nop;
28          _1 = const _;
29+         _4 = move (_1.0: usize);
30+         _5 = move (_1.1: u8);
31          StorageLive(_2);
32-         _2 = (_1.0: usize);
33+         _2 = _4;
34          StorageLive(_3);
35-         _3 = (_1.1: u8);
36+         _3 = _5;
37          _0 = const ();
38          StorageDead(_3);
39          StorageDead(_2);
40-         StorageDead(_1);
41+         StorageDead(_4);
42+         StorageDead(_5);
43+         nop;
44          return;
45      }
46  }
47