1
Fork 0

Rollup merge of #139767 - compiler-errors:www, r=oli-obk

Visit place in `BackwardIncompatibleDropHint` statement

Remove a weird hack from the `LocalUpdater` where we were manually visiting the place stored in a `StatementKind::BackwardIncompatibleDropHint` because the MIR visitor impls weren't doing so.

Also, clean up `BackwardIncompatibleDropHint`s in `CleanupPostBorrowck`, since they're not needed for runtime MIR.
This commit is contained in:
Matthias Krüger 2025-04-14 18:15:32 +02:00 committed by GitHub
commit 143f5d7696
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 19 additions and 25 deletions

View file

@ -73,9 +73,6 @@ fn method_1(_1: Guard) -> () {
}
bb7: {
backward incompatible drop(_2);
backward incompatible drop(_4);
backward incompatible drop(_5);
goto -> bb21;
}

View file

@ -73,9 +73,6 @@ fn method_1(_1: Guard) -> () {
}
bb7: {
backward incompatible drop(_2);
backward incompatible drop(_4);
backward incompatible drop(_5);
goto -> bb21;
}