Skip to content

Tracking issue for RFC 2298, ? repetition in macro rules #48591

Closed
@Centril

Description

@Centril
Contributor

This is a tracking issue for RFC 2298 (rust-lang/rfcs#2298).

Status

  • RFC accepted
    Preliminary implementation started (Implement ? macro repetition #47752)
    Preliminary implementation available
    Stabilization proposed
    Stabilized

Known bugs

None.

Unresolved questions to be answered before stabilization

  • Should the ? Kleene operator accept a separator? Adding a separator is completely meaningless (since we don't accept trailing separators, and ? can accept "at most one" repetition), but allowing it is consistent with + and *. Currently, we allow a separator. We could also make it an error or lint.

Activity

added
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.
T-langRelevant to the language team
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
on Feb 27, 2018
kennytm

kennytm commented on Feb 27, 2018

@kennytm
Member

🤔 Duplicate of #48075?

mark-i-m

mark-i-m commented on Feb 27, 2018

@mark-i-m
Member

Yep it is a duplicate

added
B-unstableBlocker: Implemented in the nightly compiler and unstable.
and removed
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.
on Feb 27, 2018
Centril

Centril commented on Feb 27, 2018

@Centril
ContributorAuthor

Hmm... missed that tracking issue. I'll close that one since it is easier =)
( Copied the text from the other issue, .. )

kennytm

kennytm commented on Feb 27, 2018

@kennytm
Member

The issue number in

(active, macro_at_most_once_rep, "1.25.0", Some(48075)),
will need to be updated in this case...

Centril

Centril commented on Feb 27, 2018

@Centril
ContributorAuthor

Oh damn... Less work to fix the RFC I guess... reopening that one then. =P

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kennytm@Centril@mark-i-m

        Issue actions

          Tracking issue for RFC 2298, `?` repetition in macro rules · Issue #48591 · rust-lang/rust