2023-06-06 08:47:00 -05:00
|
|
|
// MIR for `outer` after PreCodegen
|
|
|
|
|
|
|
|
fn outer(_1: u8) -> u8 {
|
2023-08-24 16:29:47 -05:00
|
|
|
debug v => _1; // in scope 0 at $DIR/spans.rs:9:14: 9:15
|
|
|
|
let mut _0: u8; // return place in scope 0 at $DIR/spans.rs:9:24: 9:26
|
|
|
|
let mut _2: &u8; // in scope 0 at $DIR/spans.rs:10:11: 10:13
|
2023-06-06 08:47:00 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-08-24 16:29:47 -05:00
|
|
|
StorageLive(_2); // scope 0 at $DIR/spans.rs:10:11: 10:13
|
|
|
|
_2 = &_1; // scope 0 at $DIR/spans.rs:10:11: 10:13
|
|
|
|
_0 = inner(move _2) -> [return: bb1, unwind continue]; // scope 0 at $DIR/spans.rs:10:5: 10:14
|
2023-09-20 13:51:14 -05:00
|
|
|
// mir::ConstOperand
|
2023-08-24 16:29:47 -05:00
|
|
|
// + span: $DIR/spans.rs:10:5: 10:10
|
2023-09-20 13:51:14 -05:00
|
|
|
// + const_: Const { ty: for<'a> fn(&'a u8) -> u8 {inner}, val: Value(inner) }
|
2023-06-06 08:47:00 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-08-24 16:29:47 -05:00
|
|
|
StorageDead(_2); // scope 0 at $DIR/spans.rs:10:13: 10:14
|
|
|
|
return; // scope 0 at $DIR/spans.rs:11:2: 11:2
|
2023-06-06 08:47:00 -05:00
|
|
|
}
|
|
|
|
}
|