rust/tests/mir-opt/inline/dyn_trait.get_query.Inline.panic-abort.diff

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

46 lines
1.3 KiB
Diff
Raw Normal View History

2022-05-12 05:46:28 -05:00
- // MIR for `get_query` before Inline
+ // MIR for `get_query` after Inline
fn get_query(_1: &T) -> () {
2023-06-06 08:47:00 -05:00
debug t => _1;
let mut _0: ();
let _2: &<Q as Query>::C;
let mut _3: &T;
let mut _4: &<Q as Query>::C;
2022-05-12 05:46:28 -05:00
scope 1 {
2023-06-06 08:47:00 -05:00
debug c => _2;
+ scope 2 (inlined try_execute_query::<<Q as Query>::C>) {
+ debug c => _4;
+ let mut _5: &dyn Cache<V = <Q as Query>::V>;
+ scope 3 (inlined mk_cycle::<<Q as Query>::V>) {
+ debug c => _5;
2022-05-12 05:46:28 -05:00
+ }
+ }
}
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
StorageLive(_3);
_3 = &(*_1);
_2 = <Q as Query>::cache::<T>(move _3) -> [return: bb1, unwind unreachable];
2022-05-12 05:46:28 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageDead(_3);
StorageLive(_4);
_4 = &(*_2);
- _0 = try_execute_query::<<Q as Query>::C>(move _4) -> [return: bb2, unwind unreachable];
+ StorageLive(_5);
+ _5 = _4 as &dyn Cache<V = <Q as Query>::V> (PointerCoercion(Unsize));
2023-07-16 08:11:10 -05:00
+ _0 = <dyn Cache<V = <Q as Query>::V> as Cache>::store_nocache(move _5) -> [return: bb2, unwind unreachable];
2022-05-12 05:46:28 -05:00
}
bb2: {
2023-06-06 08:47:00 -05:00
+ StorageDead(_5);
StorageDead(_4);
StorageDead(_2);
return;
2022-05-12 05:46:28 -05:00
}
}