2022-04-30 11:10:33 -05:00
|
|
|
- // MIR for `foo` before Inline
|
|
|
|
+ // MIR for `foo` after Inline
|
|
|
|
|
|
|
|
fn foo() -> () {
|
2022-11-02 16:54:49 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/caller_with_trivial_bound.rs:+1:1: +1:1
|
|
|
|
let mut _1: <IntFactory as Factory<T>>::Item; // in scope 0 at $DIR/caller_with_trivial_bound.rs:+4:9: +4:14
|
2022-04-30 11:10:33 -05:00
|
|
|
scope 1 {
|
2022-11-02 16:54:49 -05:00
|
|
|
debug x => _1; // in scope 1 at $DIR/caller_with_trivial_bound.rs:+4:9: +4:14
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/caller_with_trivial_bound.rs:+4:9: +4:14
|
|
|
|
_1 = bar::<T>() -> bb1; // scope 0 at $DIR/caller_with_trivial_bound.rs:+4:51: +4:61
|
2022-04-30 11:10:33 -05:00
|
|
|
// mir::Constant
|
2022-11-02 16:54:49 -05:00
|
|
|
// + span: $DIR/caller_with_trivial_bound.rs:20:51: 20:59
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: fn() -> <IntFactory as Factory<T>>::Item {bar::<T>}, val: Value(<ZST>) }
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-11-02 16:54:49 -05:00
|
|
|
_0 = const (); // scope 0 at $DIR/caller_with_trivial_bound.rs:+3:1: +5:2
|
|
|
|
drop(_1) -> [return: bb2, unwind: bb3]; // scope 0 at $DIR/caller_with_trivial_bound.rs:+5:1: +5:2
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageDead(_1); // scope 0 at $DIR/caller_with_trivial_bound.rs:+5:1: +5:2
|
|
|
|
return; // scope 0 at $DIR/caller_with_trivial_bound.rs:+5:2: +5:2
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3 (cleanup): {
|
2022-11-02 16:54:49 -05:00
|
|
|
resume; // scope 0 at $DIR/caller_with_trivial_bound.rs:+0:1: +5:2
|
2022-04-30 11:10:33 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|