Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tracking Issue for pattern types #123646

Copy link
Copy link

Description

@oli-obk
Issue body actions

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. You can also start a thread on zulip in the pattern type stream

Steps

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 for u8 is N..5 or even u8 is A..B
  • should we forbid full-range patterns like u8 is 0..?
  • are pattern types always ABI compatible with their base type?

Implementation history

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-pattern_types`#![feature(pattern_types)]``#![feature(pattern_types)]`S-tracking-perma-unstableStatus: The feature will stay unstable indefinitely.Status: The feature will stay unstable indefinitely.T-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types 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

    No type

    Projects

    Status
    Todo
    Show more project fields
    Status
    Exploration
    Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.