fork/rust

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

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

master
986 B47 linesraw
1- // MIR for `bar` before Inline
2+ // MIR for `bar` after Inline
3  
4  fn bar(_1: P) -> () {
5      debug _baz => _1;
6      let mut _0: ();
7      let _2: ();
8      let mut _3: &fn() {foo};
9      let _4: fn() {foo};
10      let mut _5: ();
11  
12      bb0: {
13          StorageLive(_2);
14          StorageLive(_3);
15          StorageLive(_4);
16          _4 = hide_foo() -> [return: bb1, unwind: bb4];
17      }
18  
19      bb1: {
20          _3 = &_4;
21          StorageLive(_5);
22          _5 = ();
23          _2 = <fn() {foo} as Fn<()>>::call(move _3, move _5) -> [return: bb2, unwind: bb4];
24      }
25  
26      bb2: {
27          StorageDead(_5);
28          StorageDead(_3);
29          StorageDead(_4);
30          StorageDead(_2);
31          _0 = const ();
32          drop(_1) -> [return: bb3, unwind: bb5];
33      }
34  
35      bb3: {
36          return;
37      }
38  
39      bb4 (cleanup): {
40          drop(_1) -> [return: bb5, unwind terminate(cleanup)];
41      }
42  
43      bb5 (cleanup): {
44          resume;
45      }
46  }
47