Skip to content

Raw syntax for lifetimes and loop labels #126335

Closed

Description

@traviscross

We don't currently accept:

pub fn label() {
    'r#async: loop {
        break 'r#async;
    }
}

pub fn lifetime<'r#async>() {}

Should we? This has relevance to edition migrations.

See:

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jun 12, 2024
  2. added
    T-langRelevant to the language team
    C-discussionCategory: Discussion or questions that doesn't represent real issues.
    I-lang-nominatedNominated for discussion during a lang team meeting.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jun 12, 2024
  3. traviscross commented on Jun 12, 2024

    @traviscross
    ContributorAuthor

    @rustbot labels -I-lang-nominated

    We discussed this in the lang triage call today. Our consensus was that this should be allowed and that it seems to have been an oversight that it wasn't already, given RFC 3101 and other related work.

  4. removed
    I-lang-nominatedNominated for discussion during a lang team meeting.
    on Jun 12, 2024
  5. compiler-errors commented on Jun 13, 2024

    @compiler-errors
    Contributor

    I'll put up a PR for this tomorrow. I've got a draft, just want to make sure it's actually correct.

  6. added a commit that references this issue on Jun 14, 2024
  7. traviscross commented on Sep 17, 2024

    @traviscross
    ContributorAuthor

    This has been fixed by #126452, so we can close this.

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

Metadata

Metadata

Labels

C-discussionCategory: Discussion or questions that doesn't represent real issues.T-langRelevant to the language team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions