2beabbbf6f
It makes it sound like the `ExprKind` and `Rvalue` are supposed to represent all pointer related casts, when in reality their just used to share a some enum variants. Make it clear there these are only coercion to make it clear why only some pointer related "casts" are in the enum.
29 lines
825 B
Diff
29 lines
825 B
Diff
- // MIR for `try_execute_query` before Inline
|
|
+ // MIR for `try_execute_query` after Inline
|
|
|
|
fn try_execute_query(_1: &C) -> () {
|
|
debug c => _1;
|
|
let mut _0: ();
|
|
let mut _2: &dyn Cache<V = <C as Cache>::V>;
|
|
let mut _3: &C;
|
|
+ scope 1 (inlined mk_cycle::<<C as Cache>::V>) {
|
|
+ debug c => _2;
|
|
+ }
|
|
|
|
bb0: {
|
|
StorageLive(_2);
|
|
StorageLive(_3);
|
|
_3 = &(*_1);
|
|
_2 = move _3 as &dyn Cache<V = <C as Cache>::V> (PointerCoercion(Unsize));
|
|
StorageDead(_3);
|
|
- _0 = mk_cycle::<<C as Cache>::V>(move _2) -> [return: bb1, unwind continue];
|
|
+ _0 = <dyn Cache<V = <C as Cache>::V> as Cache>::store_nocache(_2) -> [return: bb1, unwind continue];
|
|
}
|
|
|
|
bb1: {
|
|
StorageDead(_2);
|
|
return;
|
|
}
|
|
}
|
|
|