2022-09-05 03:00:31 +00:00
|
|
|
// MIR for `main` after built
|
2020-06-18 09:37:59 +00:00
|
|
|
|
|
|
|
| User Type Annotations
|
2024-03-26 11:46:29 +00:00
|
|
|
| 0: user_ty: Canonical { value: Ty(Void), max_universe: U0, variables: [], defining_opaque_types: [] }, span: $DIR/issue_72181_1.rs:17:12: 17:16, inferred_ty: Void
|
|
|
|
| 1: user_ty: Canonical { value: Ty(Void), max_universe: U0, variables: [], defining_opaque_types: [] }, span: $DIR/issue_72181_1.rs:17:12: 17:16, inferred_ty: Void
|
2020-06-18 09:37:59 +00:00
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: !;
|
|
|
|
let _2: Void as UserTypeProjection { base: UserType(0), projs: [] };
|
|
|
|
let mut _3: ();
|
|
|
|
let _4: !;
|
|
|
|
let mut _5: Void;
|
2020-06-18 09:37:59 +00:00
|
|
|
scope 1 {
|
2023-06-06 13:47:00 +00:00
|
|
|
debug v => _2;
|
2020-06-18 09:37:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = ();
|
|
|
|
_2 = transmute::<(), Void>(move _3) -> bb4;
|
2020-06-18 09:37:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-02 20:11:24 +00:00
|
|
|
bb1: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageDead(_3);
|
|
|
|
FakeRead(ForLet(None), _2);
|
|
|
|
AscribeUserType(_2, o, UserTypeProjection { base: UserType(1), projs: [] });
|
|
|
|
StorageLive(_4);
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = move _2;
|
|
|
|
_4 = f(move _5) -> bb4;
|
2020-06-18 09:37:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-02 20:11:24 +00:00
|
|
|
bb2: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageDead(_5);
|
|
|
|
StorageDead(_4);
|
|
|
|
StorageDead(_2);
|
|
|
|
unreachable;
|
2020-06-18 09:37:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-02 20:11:24 +00:00
|
|
|
bb3: {
|
2023-06-06 13:47:00 +00:00
|
|
|
return;
|
2020-06-18 09:37:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-02 20:11:24 +00:00
|
|
|
bb4 (cleanup): {
|
2023-06-06 13:47:00 +00:00
|
|
|
resume;
|
2020-06-18 09:37:59 +00:00
|
|
|
}
|
|
|
|
}
|