Skip to content

Bad span for try shorthand #32709

Description

@marcusklaas

The span associated to the expression in

fn test() {
    a?
}

includes the closing brace, which it should not.

Found this after @erikjohnson mentioned a fatal error in rustfmt here.

I'm working on a patch for this.

Activity

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

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions