Rollup merge of #59585 - rust-lang:shallow-borrow-fixes, r=pnkfelix
Fixes for shallow borrows * Don't promote these borrows if we're going to remove them before codegen * Correctly mark unreachable code
This commit is contained in:
commit
69bc687f20
3 changed files with 8 additions and 9 deletions
|
|
@ -70,8 +70,8 @@ fn main() {
|
|||
// }
|
||||
// bb8: { // binding1 and guard
|
||||
// StorageLive(_6);
|
||||
// _6 = &(((promoted[1]: std::option::Option<i32>) as Some).0: i32);
|
||||
// _4 = &shallow (promoted[0]: std::option::Option<i32>);
|
||||
// _6 = &(((promoted[0]: std::option::Option<i32>) as Some).0: i32);
|
||||
// _4 = &shallow _2;
|
||||
// StorageLive(_7);
|
||||
// _7 = const guard() -> [return: bb9, unwind: bb1];
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue