]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
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; // in scope 0 at $DIR/inline-shims.rs:5:20: 5:21 | |
6 | let mut _0: fn(A, B); // return place in scope 0 at $DIR/inline-shims.rs:5:36: 5:44 | |
c295e0f8 | 7 | let mut _2: &fn(A, B); // in scope 0 at $DIR/inline-shims.rs:6:5: 6:14 |
29967ef6 XL |
8 | + scope 1 (inlined <fn(A, B) as Clone>::clone - shim(fn(A, B))) { // at $DIR/inline-shims.rs:6:5: 6:14 |
9 | + } | |
10 | ||
11 | bb0: { | |
c295e0f8 XL |
12 | StorageLive(_2); // scope 0 at $DIR/inline-shims.rs:6:5: 6:14 |
13 | _2 = &_1; // scope 0 at $DIR/inline-shims.rs:6:5: 6:14 | |
29967ef6 XL |
14 | - _0 = <fn(A, B) as Clone>::clone(move _2) -> bb1; // scope 0 at $DIR/inline-shims.rs:6:5: 6:14 |
15 | - // mir::Constant | |
16 | - // + span: $DIR/inline-shims.rs:6:7: 6:12 | |
5e7ed085 | 17 | - // + literal: Const { ty: for<'r> fn(&'r fn(A, B)) -> fn(A, B) {<fn(A, B) as Clone>::clone}, val: Value(Scalar(<ZST>)) } |
29967ef6 XL |
18 | - } |
19 | - | |
20 | - bb1: { | |
5e7ed085 | 21 | + _0 = (*_2); // scope 1 at $SRC_DIR/core/src/clone.rs:LL:COL |
29967ef6 XL |
22 | StorageDead(_2); // scope 0 at $DIR/inline-shims.rs:6:13: 6:14 |
23 | return; // scope 0 at $DIR/inline-shims.rs:7:2: 7:2 | |
923072b8 FG |
24 | + } |
25 | + | |
26 | + bb1 (cleanup): { | |
27 | + resume; // scope 0 at $DIR/inline-shims.rs:5:1: 7:2 | |
29967ef6 XL |
28 | } |
29 | } | |
30 |