fork/rust

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

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

master
1.3 KiB51 linesraw
1- // MIR for `h` before Inline
2+ // MIR for `h` after Inline
3  
4  fn h() -> () {
5      let mut _0: ();
6      let _1: (!, !);
7+     let mut _2: fn() -> ! {sleep};
8+     scope 1 (inlined call_twice::<!, fn() -> ! {sleep}>) {
9+         debug f => _2;
10+         let mut _3: &fn() -> ! {sleep};
11+         let mut _4: !;
12+         let mut _5: &fn() -> ! {sleep};
13+         let mut _6: !;
14+         scope 2 {
15+             debug a => _4;
16+             scope 3 {
17+                 debug b => _6;
18+             }
19+         }
20+     }
21  
22      bb0: {
23          StorageLive(_1);
24-         _1 = call_twice::<!, fn() -> ! {sleep}>(sleep) -> unwind unreachable;
25+         StorageLive(_2);
26+         _2 = sleep;
27+         StorageLive(_4);
28+         StorageLive(_6);
29+         StorageLive(_3);
30+         _3 = &_2;
31+         _4 = <fn() -> ! {sleep} as Fn<()>>::call(move _3, const ()) -> [return: bb1, unwind unreachable];
32+     }
33+ 
34+     bb1: {
35+         StorageDead(_3);
36+         StorageLive(_5);
37+         _5 = &_2;
38+         _6 = <fn() -> ! {sleep} as Fn<()>>::call(move _5, const ()) -> [return: bb2, unwind unreachable];
39+     }
40+ 
41+     bb2: {
42+         StorageDead(_5);
43+         _1 = (move _4, move _6);
44+         drop(_2) -> [return: bb3, unwind unreachable];
45+     }
46+ 
47+     bb3: {
48+         unreachable;
49      }
50  }
51