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

Fix invalid suggestion for mismatched types in closure arguments #114256

Merged
merged 1 commit into from
Jul 30, 2023

Commits on Jul 30, 2023

  1. Fix invalid suggestion for mismatched types in closure arguments

    The invalid suggestion came from a wrongly created span in `rustc_parse'
    for closure arguments that didn't have a type specified. Specifically,
    the span in this case was the last token span, but in the case of
    tuples, the span represented the last parenthesis instead of the whole
    tuple, which is fixed by taking the more accurate span of the pattern.
    Urgau committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    8ea7e45 View commit details
    Browse the repository at this point in the history