fork/rust

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

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

master
1.3 KiB61 linesraw
1- // MIR for `unique_with_copies` before ReferencePropagation
2+ // MIR for `unique_with_copies` after ReferencePropagation
3  
4  fn unique_with_copies() -> () {
5      let mut _0: ();
6      let _1: *mut i32;
7      let mut _2: i32;
8      let _4: ();
9      let mut _5: i32;
10      let _6: ();
11      let mut _7: i32;
12      scope 1 {
13-         debug y => _1;
14+         debug y => _3;
15          scope 5 {
16          }
17      }
18      scope 2 {
19          debug a => _2;
20          let _3: *mut i32;
21          scope 3 {
22              debug x => _3;
23              scope 4 {
24              }
25          }
26      }
27  
28      bb0: {
29-         StorageLive(_1);
30          StorageLive(_2);
31          _2 = const 0_i32;
32-         StorageLive(_3);
33          _3 = &raw mut _2;
34          StorageLive(_4);
35          StorageLive(_5);
36          _5 = (*_3);
37          _4 = opaque::<i32>(move _5) -> [return: bb1, unwind continue];
38      }
39  
40      bb1: {
41          StorageDead(_5);
42          StorageDead(_4);
43-         _1 = _3;
44-         StorageDead(_3);
45          StorageDead(_2);
46          StorageLive(_6);
47          StorageLive(_7);
48-         _7 = (*_1);
49+         _7 = (*_3);
50          _6 = opaque::<i32>(move _7) -> [return: bb2, unwind continue];
51      }
52  
53      bb2: {
54          StorageDead(_7);
55          StorageDead(_6);
56          _0 = const ();
57-         StorageDead(_1);
58          return;
59      }
60  }
61