Uh oh!
There was an error while loading. Please reload this page.
Allow BackwardIncompatibleDropHint in polonius legacy - #158384
Conversation
rustbot
commented
Jun 25, 2026
r? @folkertdev rustbot has assigned @folkertdev. Use Why was this reviewer chosen?The reviewer was selected based on:
|
KiChjang
commented
Jun 25, 2026
r? @lqd |
KiChjang
commented
Jul 8, 2026
This is actually a small enough PR that anyone can just review, so r? @folkertdev |
lqd
commented
Jul 8, 2026
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. |
KiChjang
commented
Jul 8, 2026
@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. |
Uh oh!
There was an error while loading. Please reload this page.
folkertdev
commented
Jul 8, 2026
r? lqd |
lqd
commented
Jul 8, 2026
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! |
lqd
commented
Jul 8, 2026
@bors squash |
This comment has been minimized.
This comment has been minimized.
🔨 2 commits were squashed into 6573670. |
77a6ade to
6573670Comparelqd
commented
Jul 8, 2026
@bors r+ rollup |
This comment has been minimized.
This comment has been minimized.
…rop-hint, r=lqd Allow BackwardIncompatibleDropHint in polonius legacy Fixesrust-lang#157568. Very simple fix to make `StatementKind::BackwardIncompatibleDropHint` a noop and prevent it from panicking when collecting loan invalidations while running `-Zpolonius=legacy`.
lqd
commented
Jul 8, 2026
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
23cf412Comparerustbot
commented
Jul 9, 2026
This PR changes a file inside |
rustbot
commented
Jul 9, 2026
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. |
KiChjang
commented
Jul 9, 2026
@lqd because main changed and added a crash test for the issue. We weren't fast enough :( |
lqd
commented
Jul 9, 2026
Incredible :) Thanks for fixing it. Again. @bors r+ rollup |
…rop-hint, r=lqd Allow BackwardIncompatibleDropHint in polonius legacy Fixesrust-lang#157568. Very simple fix to make `StatementKind::BackwardIncompatibleDropHint` a noop and prevent it from panicking when collecting loan invalidations while running `-Zpolonius=legacy`.
…uwer Rollup of 24 pull requests Successful merges: - #150946 (intrinsics: Add a fallback for non-const libm float functions) - #158510 (Enable `static_position_independent_executables` on all gnu and musl targets) - #158541 (Move `std::io::Write` to `core::io`) - #158899 (Fix `unaligned_volatile_store` by removing `MemFlags::UNALIGNED`) - #156027 (Consider captured regions for opaque type region liveness.) - #156370 (Reject linked dylib EII default overrides) - #156508 (Infer all anonymous lifetimes in assoc consts as `'static`) - #157561 (rustdoc: do not include extra stuff in span) - #158617 (allow mGCA const arguments to fall back to anon consts) - #158645 (Fix splat ICEs and ban it in closures) - #158859 (Improve `-Zls` diagnostic message on `.rs` files) - #158988 (Redo `TokenStreamIter`) - #158347 (Improve generic parameters handling for #[diagnostic::on_const]) - #158384 (Allow BackwardIncompatibleDropHint in polonius legacy) - #158722 (delegation: do not always inherit `ConstArgHasType` predicates) - #158739 (view-types: HIR lowering) - #158877 (borrowck: Keep returned `path` from `best_blame_constraint()` consistent) - #158883 (tests: fix enum-match.rs to handle LLVM 23) - #158886 (Add documentation for the `no_std` attribute) - #158940 (Implement feature `char_to_u32`) - #158951 (Merge three `MaxUniverse`s into one) - #158961 (Reapply "LLVM 23: Run AssignGUIDPass in some places") - #158995 (Use REST API in linkchecker script) - #158996 ([compiler] Implement `PartialOrd` via `Ord` for `Span` and newtype_indexes)
…rop-hint, r=lqd Allow BackwardIncompatibleDropHint in polonius legacy Fixesrust-lang#157568. Very simple fix to make `StatementKind::BackwardIncompatibleDropHint` a noop and prevent it from panicking when collecting loan invalidations while running `-Zpolonius=legacy`.
Rollup of 24 pull requests Successful merges: - #150946 (intrinsics: Add a fallback for non-const libm float functions) - #158541 (Move `std::io::Write` to `core::io`) - #156027 (Consider captured regions for opaque type region liveness.) - #156370 (Reject linked dylib EII default overrides) - #156508 (Infer all anonymous lifetimes in assoc consts as `'static`) - #157561 (rustdoc: do not include extra stuff in span) - #158617 (allow mGCA const arguments to fall back to anon consts) - #158645 (Fix splat ICEs and ban it in closures) - #158859 (Improve `-Zls` diagnostic message on `.rs` files) - #158988 (Redo `TokenStreamIter`) - #158347 (Improve generic parameters handling for #[diagnostic::on_const]) - #158384 (Allow BackwardIncompatibleDropHint in polonius legacy) - #158722 (delegation: do not always inherit `ConstArgHasType` predicates) - #158739 (view-types: HIR lowering) - #158877 (borrowck: Keep returned `path` from `best_blame_constraint()` consistent) - #158883 (tests: fix enum-match.rs to handle LLVM 23) - #158886 (Add documentation for the `no_std` attribute) - #158940 (Implement feature `char_to_u32`) - #158951 (Merge three `MaxUniverse`s into one) - #158960 (Fix bootstrap submodule path prefix matching) - #158961 (Reapply "LLVM 23: Run AssignGUIDPass in some places") - #158995 (Use REST API in linkchecker script) - #158996 ([compiler] Implement `PartialOrd` via `Ord` for `Span` and newtype_indexes) - #159036 (bootstrap: expand '@argfile' arguments to rustc shim)
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #158384 - KiChjang:allow-backward-incompat-drop-hint, r=lqd Allow BackwardIncompatibleDropHint in polonius legacy Fixes#157568. Very simple fix to make `StatementKind::BackwardIncompatibleDropHint` a noop and prevent it from panicking when collecting loan invalidations while running `-Zpolonius=legacy`.
Rollup of 24 pull requests Successful merges: - rust-lang/rust#150946 (intrinsics: Add a fallback for non-const libm float functions) - rust-lang/rust#158541 (Move `std::io::Write` to `core::io`) - rust-lang/rust#156027 (Consider captured regions for opaque type region liveness.) - rust-lang/rust#156370 (Reject linked dylib EII default overrides) - rust-lang/rust#156508 (Infer all anonymous lifetimes in assoc consts as `'static`) - rust-lang/rust#157561 (rustdoc: do not include extra stuff in span) - rust-lang/rust#158617 (allow mGCA const arguments to fall back to anon consts) - rust-lang/rust#158645 (Fix splat ICEs and ban it in closures) - rust-lang/rust#158859 (Improve `-Zls` diagnostic message on `.rs` files) - rust-lang/rust#158988 (Redo `TokenStreamIter`) - rust-lang/rust#158347 (Improve generic parameters handling for #[diagnostic::on_const]) - rust-lang/rust#158384 (Allow BackwardIncompatibleDropHint in polonius legacy) - rust-lang/rust#158722 (delegation: do not always inherit `ConstArgHasType` predicates) - rust-lang/rust#158739 (view-types: HIR lowering) - rust-lang/rust#158877 (borrowck: Keep returned `path` from `best_blame_constraint()` consistent) - rust-lang/rust#158883 (tests: fix enum-match.rs to handle LLVM 23) - rust-lang/rust#158886 (Add documentation for the `no_std` attribute) - rust-lang/rust#158940 (Implement feature `char_to_u32`) - rust-lang/rust#158951 (Merge three `MaxUniverse`s into one) - rust-lang/rust#158960 (Fix bootstrap submodule path prefix matching) - rust-lang/rust#158961 (Reapply "LLVM 23: Run AssignGUIDPass in some places") - rust-lang/rust#158995 (Use REST API in linkchecker script) - rust-lang/rust#158996 ([compiler] Implement `PartialOrd` via `Ord` for `Span` and newtype_indexes) - rust-lang/rust#159036 (bootstrap: expand '@argfile' arguments to rustc shim)
View all comments
Fixes#157568.
Very simple fix to make
StatementKind::BackwardIncompatibleDropHinta noop and prevent it from panicking when collecting loan invalidations while running-Zpolonius=legacy.