Skip to content

Remove feature(string_deref_patterns)#150530

Merged
bors merged 1 commit intorust-lang:mainfrom
Zalathar:string-deref-patterns
Dec 31, 2025
Merged

Remove feature(string_deref_patterns)#150530
bors merged 1 commit intorust-lang:mainfrom
Zalathar:string-deref-patterns

Conversation

@Zalathar
Copy link
Member

The older string_deref_patterns feature has been superseded by the newer and more general deref_patterns feature. Removing string-deref-patterns allows us to get rid of a few tricky special cases in match lowering, which are different from the special cases used by deref-patterns.

The handful of existing tests for string_deref_patterns have been migrated to use deref_patterns instead. Current nightly users of the older feature should hopefully be able to migrate to the newer feature without too much trouble.

Note that deref_patterns is currently marked as an “incomplete” feature, because it doesn't have an accepted RFC. But string_deref_patterns doesn't appear to have ever had an accepted RFC either, so arguably it should have been marked incomplete too.


Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-deref_patterns `#![feature(deref_patterns)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants