Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect missing => after match guard during parsing #116400

Merged
merged 3 commits into from
Oct 7, 2023

Commits on Oct 3, 2023

  1. Detect missing => after match guard during parsing

    ```
    error: expected one of `,`, `:`, or `}`, found `.`
      --> $DIR/missing-fat-arrow.rs:25:14
       |
    LL |         Some(a) if a.value == b {
       |                               - while parsing this struct
    LL |             a.value = 1;
       |             -^ expected one of `,`, `:`, or `}`
       |             |
       |             while parsing this struct field
       |
    help: try naming a field
       |
    LL |             a: a.value = 1;
       |             ++
    help: you might have meant to start a match arm after the match guard
       |
    LL |         Some(a) if a.value == b => {
       |                                 ++
    ```
    
    Fix rust-lang#78585.
    estebank committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    745c1ea View commit details
    Browse the repository at this point in the history
  2. Move some tests around

    estebank committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    18ec4e9 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. review comments

    estebank committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    8fd345d View commit details
    Browse the repository at this point in the history