File: remove_zsts.remove_generic_array.RemoveZsts.diff

package info (click to toggle)
rustc 1.87.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 925,564 kB
  • sloc: xml: 158,127; python: 36,039; javascript: 19,761; sh: 19,737; cpp: 18,981; ansic: 13,133; asm: 4,376; makefile: 710; perl: 29; lisp: 28; ruby: 19; sql: 11
file content (44 lines) | stat: -rw-r--r-- 971 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
- // MIR for `remove_generic_array` before RemoveZsts
+ // MIR for `remove_generic_array` after RemoveZsts
  
  fn remove_generic_array(_1: T) -> () {
      debug x => _1;
      let mut _0: ();
      let _2: [T; 0];
      let mut _3: T;
      let mut _5: T;
      scope 1 {
-         debug a => _2;
+         debug a => const ZeroSized: [T; 0];
          let _4: [T; 0];
          scope 2 {
-             debug b => _4;
+             debug b => const ZeroSized: [T; 0];
          }
      }
  
      bb0: {
-         StorageLive(_2);
+         nop;
          StorageLive(_3);
          _3 = copy _1;
-         _2 = [];
+         nop;
          StorageDead(_3);
-         StorageLive(_4);
+         nop;
          StorageLive(_5);
          _5 = copy _1;
-         _4 = [];
+         nop;
          StorageDead(_5);
-         _0 = const ();
-         StorageDead(_4);
-         StorageDead(_2);
+         nop;
+         nop;
+         nop;
          return;
      }
  }