Skip to content

Bad span for labeled loops #27042

Closed
@marcusklaas

Description

@marcusklaas

Rustc's parser does not include a loop's label in its span.

So the span associated to the expression

'somelabel: loop {
    whatev();
}

will contain only

loop {
    whatev();
}

cc @nrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an ASTE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions