Open
0 of 2 issues completedDescription
This is a tracking issue for the feature gate #![feature(pattern_types)
.
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
- Implementation (Implement minimal, internal-only pattern types in the type system #120131)
- non-macro syntax impl & rustfmt impl
- Adjust documentation (see instructions on rustc-dev-guide)
- Formatting for new syntax has been added to the Style Guide (nightly-style-procedure)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
- Pattern type ranges cause monomorphization time errors on wraparound ranges (
u8 is 10..5
)- Same problems as having
N + 2
in an array length foru8 is N..5
or evenu8 is A..B
- Same problems as having
- should we forbid full-range patterns like
u8 is 0..
? - are pattern types always ABI compatible with their base type?
Implementation history
Sub-issues
Metadata
Metadata
Assignees
Labels
Blocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(pattern_types)]`Status: The feature will stay unstable indefinitely.Relevant to the language team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Projects
Status
Todo
Status
Exploration