Skip to content

use of undeclared label error message has a wrong span #28109

Closed
@nagisa

Description

@nagisa

It includes both the break/continue keywords as well as the label name, when only the label should be spanned:

e.g.

<anon>:1:13: 1:22 error: use of undeclared label `'a`
<anon>:1 fn main() { break 'a; }
                     ^~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions