Allow BackwardIncompatibleDropHint in polonius legacy#158384
Conversation
|
r? @folkertdev rustbot has assigned @folkertdev. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? @lqd |
|
This is actually a small enough PR that anyone can just review, so r? @folkertdev |
|
Isn't this hint only used when migrating to edition2024? Why do you want to do this? Especially since we're planning on removing the legacy implementation in due time. |
|
@lqd you're right, I'm simply just trying to resolve the linked issue. If it isn't worth doing, then I suggest closing both this PR and the issue. |
|
r? lqd |
|
r? me It's indeed not going to be a super long-term thing, but you cared, and did the work already, so let's land it (after moving the test). Thanks! |
|
@bors squash |
This comment has been minimized.
This comment has been minimized.
|
🔨 2 commits were squashed into 6573670. |
77a6ade to
6573670
Compare
|
@bors r+ rollup |
This comment has been minimized.
This comment has been minimized.
…rop-hint, r=lqd Allow BackwardIncompatibleDropHint in polonius legacy Fixes rust-lang#157568. Very simple fix to make `StatementKind::BackwardIncompatibleDropHint` a noop and prevent it from panicking when collecting loan invalidations while running `-Zpolonius=legacy`.
|
Darn, why did CI pass before. This will make the rollup fail :( @bors r- |
|
This pull request was unapproved. This PR was contained in a rollup (#158973), which was unapproved. |
* Allow BackwardIncompatibleDropHint in polonius legacy * Move test file to be under polonius * Remove resolved crash test file
6573670 to
23cf412
Compare
|
This PR changes a file inside |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@lqd because main changed and added a crash test for the issue. We weren't fast enough :( |
Fixes #157568.
Very simple fix to make
StatementKind::BackwardIncompatibleDropHinta noop and prevent it from panicking when collecting loan invalidations while running-Zpolonius=legacy.