Open
Description
This is a tracking issue for XXX.
The feature gate for the issue is #![feature(guard_patterns)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Accept an RFC.
- Implement in nightly.
- Add documentation to the dev guide.
- See the instructions.
- Add documentation to the reference.
- See the instructions.
- Add formatting for new syntax to the style guide.
- See the nightly style procedure.
- Stabilize.
- See the instructions.
Unresolved Questions
- Should we allow mismatched bindings when possible in pattern disjunctions?
- How should we refer to "guard patterns"?
### Implementation history
- [ ] https://github.com/rust-lang/rust/pull/129996
- [ ] https://github.com/rust-lang/rust/pull/133424
- [ ] https://github.com/rust-lang/rust/pull/134989