rust/src/test/mir-opt/inline/dyn_trait.mk_cycle.Inline.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
1.2 KiB
Diff
Raw Normal View History

2022-05-12 05:46:28 -05:00
- // MIR for `mk_cycle` before Inline
+ // MIR for `mk_cycle` after Inline
fn mk_cycle(_1: &dyn Cache<V = V>) -> () {
2022-07-27 13:47:42 -05:00
debug c => _1; // in scope 0 at $DIR/dyn-trait.rs:+0:27: +0:28
let mut _0: (); // return place in scope 0 at $DIR/dyn-trait.rs:+0:49: +0:49
let mut _2: &dyn Cache<V = V>; // in scope 0 at $DIR/dyn-trait.rs:+1:5: +1:22
2022-05-12 05:46:28 -05:00
bb0: {
2022-07-27 13:47:42 -05:00
StorageLive(_2); // scope 0 at $DIR/dyn-trait.rs:+1:5: +1:22
_2 = &(*_1); // scope 0 at $DIR/dyn-trait.rs:+1:5: +1:22
_0 = <dyn Cache<V = V> as Cache>::store_nocache(move _2) -> bb1; // scope 0 at $DIR/dyn-trait.rs:+1:5: +1:22
2022-05-12 05:46:28 -05:00
// mir::Constant
// + span: $DIR/dyn-trait.rs:21:7: 21:20
2022-07-06 09:14:46 -05:00
// + literal: Const { ty: for<'r> fn(&'r dyn Cache<V = V>) {<dyn Cache<V = V> as Cache>::store_nocache}, val: Value(<ZST>) }
2022-05-12 05:46:28 -05:00
}
bb1: {
2022-07-27 13:47:42 -05:00
StorageDead(_2); // scope 0 at $DIR/dyn-trait.rs:+1:21: +1:22
return; // scope 0 at $DIR/dyn-trait.rs:+2:2: +2:2
2022-05-12 05:46:28 -05:00
}
}