2020-11-05 18:00:00 -06:00
|
|
|
- // MIR for `clone` before Inline
|
|
|
|
+ // MIR for `clone` after Inline
|
|
|
|
|
|
|
|
fn clone(_1: fn(A, B)) -> fn(A, B) {
|
2022-11-02 16:54:49 -05:00
|
|
|
debug f => _1; // in scope 0 at $DIR/inline_shims.rs:+0:20: +0:21
|
|
|
|
let mut _0: fn(A, B); // return place in scope 0 at $DIR/inline_shims.rs:+0:36: +0:44
|
|
|
|
let mut _2: &fn(A, B); // in scope 0 at $DIR/inline_shims.rs:+1:5: +1:14
|
2022-12-25 11:52:42 -06:00
|
|
|
+ scope 1 (inlined <fn(A, B) as Clone>::clone - shim(fn(A, B))) { // at $DIR/inline_shims.rs:6:7: 6:14
|
2020-11-05 18:00:00 -06:00
|
|
|
+ }
|
|
|
|
|
|
|
|
bb0: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_2); // scope 0 at $DIR/inline_shims.rs:+1:5: +1:14
|
|
|
|
_2 = &_1; // scope 0 at $DIR/inline_shims.rs:+1:5: +1:14
|
|
|
|
- _0 = <fn(A, B) as Clone>::clone(move _2) -> bb1; // scope 0 at $DIR/inline_shims.rs:+1:5: +1:14
|
2020-11-05 18:00:00 -06:00
|
|
|
- // mir::Constant
|
2022-11-02 16:54:49 -05:00
|
|
|
- // + span: $DIR/inline_shims.rs:6:7: 6:12
|
2022-09-21 10:57:30 -05:00
|
|
|
- // + literal: Const { ty: for<'a> fn(&'a fn(A, B)) -> fn(A, B) {<fn(A, B) as Clone>::clone}, val: Value(<ZST>) }
|
2020-11-05 18:00:00 -06:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb1: {
|
2022-02-27 09:09:52 -06:00
|
|
|
+ _0 = (*_2); // scope 1 at $SRC_DIR/core/src/clone.rs:LL:COL
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageDead(_2); // scope 0 at $DIR/inline_shims.rs:+1:13: +1:14
|
|
|
|
return; // scope 0 at $DIR/inline_shims.rs:+2:2: +2:2
|
2020-11-05 18:00:00 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|