2022-09-04 22:00:31 -05:00
|
|
|
// MIR for `main` after built
|
2020-06-18 04:37:59 -05:00
|
|
|
|
|
|
|
| User Type Annotations
|
2023-03-25 15:10:41 -05:00
|
|
|
| 0: user_ty: Canonical { value: Ty(Void), max_universe: U0, variables: [] }, span: $DIR/issue_72181_1.rs:16:12: 16:16, inferred_ty: Void
|
|
|
|
| 1: user_ty: Canonical { value: Ty(Void), max_universe: U0, variables: [] }, span: $DIR/issue_72181_1.rs:16:12: 16:16, inferred_ty: Void
|
2020-06-18 04:37:59 -05:00
|
|
|
|
|
|
|
|
fn main() -> () {
|
2022-11-02 16:54:49 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/issue_72181_1.rs:+0:11: +0:11
|
|
|
|
let mut _1: !; // in scope 0 at $DIR/issue_72181_1.rs:+0:11: +6:2
|
|
|
|
let _2: Void as UserTypeProjection { base: UserType(0), projs: [] }; // in scope 0 at $DIR/issue_72181_1.rs:+1:9: +1:10
|
|
|
|
let mut _3: (); // in scope 0 at $DIR/issue_72181_1.rs:+2:41: +2:43
|
|
|
|
let _4: !; // in scope 0 at $DIR/issue_72181_1.rs:+5:5: +5:9
|
|
|
|
let mut _5: Void; // in scope 0 at $DIR/issue_72181_1.rs:+5:7: +5:8
|
2020-06-18 04:37:59 -05:00
|
|
|
scope 1 {
|
2022-11-02 16:54:49 -05:00
|
|
|
debug v => _2; // in scope 1 at $DIR/issue_72181_1.rs:+1:9: +1:10
|
2020-06-18 04:37:59 -05:00
|
|
|
}
|
|
|
|
scope 2 {
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_2); // scope 0 at $DIR/issue_72181_1.rs:+1:9: +1:10
|
|
|
|
StorageLive(_3); // scope 2 at $DIR/issue_72181_1.rs:+2:41: +2:43
|
|
|
|
_3 = (); // scope 2 at $DIR/issue_72181_1.rs:+2:41: +2:43
|
|
|
|
_2 = transmute::<(), Void>(move _3) -> bb4; // scope 2 at $DIR/issue_72181_1.rs:+2:9: +2:44
|
2020-06-18 04:37:59 -05:00
|
|
|
// mir::Constant
|
2022-11-02 16:54:49 -05:00
|
|
|
// + span: $DIR/issue_72181_1.rs:17:9: 17:40
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: unsafe extern "rust-intrinsic" fn(()) -> Void {transmute::<(), Void>}, val: Value(<ZST>) }
|
2020-06-18 04:37:59 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb1: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageDead(_3); // scope 2 at $DIR/issue_72181_1.rs:+2:43: +2:44
|
|
|
|
FakeRead(ForLet(None), _2); // scope 0 at $DIR/issue_72181_1.rs:+1:9: +1:10
|
|
|
|
AscribeUserType(_2, o, UserTypeProjection { base: UserType(1), projs: [] }); // scope 0 at $DIR/issue_72181_1.rs:+1:12: +1:16
|
|
|
|
StorageLive(_4); // scope 1 at $DIR/issue_72181_1.rs:+5:5: +5:9
|
|
|
|
StorageLive(_5); // scope 1 at $DIR/issue_72181_1.rs:+5:7: +5:8
|
|
|
|
_5 = move _2; // scope 1 at $DIR/issue_72181_1.rs:+5:7: +5:8
|
|
|
|
_4 = f(move _5) -> bb4; // scope 1 at $DIR/issue_72181_1.rs:+5:5: +5:9
|
2020-06-18 04:37:59 -05:00
|
|
|
// mir::Constant
|
2022-11-02 16:54:49 -05:00
|
|
|
// + span: $DIR/issue_72181_1.rs:20:5: 20:6
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: fn(Void) -> ! {f}, val: Value(<ZST>) }
|
2020-06-18 04:37:59 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb2: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageDead(_5); // scope 1 at $DIR/issue_72181_1.rs:+5:8: +5:9
|
|
|
|
StorageDead(_4); // scope 1 at $DIR/issue_72181_1.rs:+5:9: +5:10
|
|
|
|
StorageDead(_2); // scope 0 at $DIR/issue_72181_1.rs:+6:1: +6:2
|
|
|
|
unreachable; // scope 0 at $DIR/issue_72181_1.rs:+0:11: +6:2
|
2020-06-18 04:37:59 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb3: {
|
2022-11-02 16:54:49 -05:00
|
|
|
return; // scope 0 at $DIR/issue_72181_1.rs:+6:2: +6:2
|
2020-06-18 04:37:59 -05:00
|
|
|
}
|
|
|
|
|
2020-10-02 15:11:24 -05:00
|
|
|
bb4 (cleanup): {
|
2022-11-02 16:54:49 -05:00
|
|
|
resume; // scope 0 at $DIR/issue_72181_1.rs:+0:1: +6:2
|
2020-06-18 04:37:59 -05:00
|
|
|
}
|
|
|
|
}
|