fork/rust

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

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

master
525 B23 linesraw
1- // MIR for `clone` before Inline
2+ // MIR for `clone` after Inline
3  
4  fn clone(_1: fn(A, B)) -> fn(A, B) {
5      debug f => _1;
6      let mut _0: fn(A, B);
7      let mut _2: &fn(A, B);
8+     scope 1 (inlined <fn(A, B) as Clone>::clone - shim(fn(A, B))) {
9+     }
10  
11      bb0: {
12          StorageLive(_2);
13          _2 = &_1;
14-         _0 = <fn(A, B) as Clone>::clone(move _2) -> [return: bb1, unwind unreachable];
15-     }
16- 
17-     bb1: {
18+         _0 = (*_2);
19          StorageDead(_2);
20          return;
21      }
22  }
23