You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR removes the old feature box_patterns, tracked in #29641. As explained in #29641 (comment), this feature will not be stabilized since deref_patterns (#87121) is a better and more general version of this feature.
It was not possible to remove this feature until recently since the compiler itself still depended on this feature. This was changed with rust-lang/compiler-team#984.
This PR currently breaks crates that rely on box patterns using the incorrect pre-expansion feature gating (see #154045 for more details). Therefore, this needs a crater run.
cyrgani
added
S-blocked
Status: Blocked on something else such as an RFC or other implementation work.
needs-fcp
This change is insta-stable, or significant enough to need a team FCP to proceed.
I-lang-nominated
Nominated for discussion during a lang team meeting.
needs-crater
This change needs a crater run to check for possible breakage in the ecosystem.
labels
May 19, 2026
rustbot
added
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
T-clippy
Relevant to the Clippy team.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-rustfmt
Relevant to the rustfmt team, which will review and decide on the PR/issue.
labels
May 19, 2026
The reason will be displayed to describe this comment to others. Learn more.
I suspect the spirit of the original test presumed having a and b boxed, so these should be kept as they were, and instead deref patterns should be used (implicitly or explicitly with deref!)? What do you think?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I-lang-nominatedNominated for discussion during a lang team meeting.needs-craterThis change needs a crater run to check for possible breakage in the ecosystem.needs-fcpThis change is insta-stable, or significant enough to need a team FCP to proceed.S-blockedStatus: Blocked on something else such as an RFC or other implementation work.S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.T-clippyRelevant to the Clippy team.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-rustfmtRelevant to the rustfmt team, which will review and decide on the PR/issue.
5 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the old feature
box_patterns, tracked in #29641. As explained in #29641 (comment), this feature will not be stabilized sincederef_patterns(#87121) is a better and more general version of this feature.It was not possible to remove this feature until recently since the compiler itself still depended on this feature. This was changed with rust-lang/compiler-team#984.
This PR currently breaks crates that rely on box patterns using the incorrect pre-expansion feature gating (see #154045 for more details). Therefore, this needs a crater run.
Currently blocked on rust-lang/rust-clippy#17008.
Closes #29641.
Closes #105099.
Closes #156110.