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 a span in parse_ty_bare_fn. #126724

Merged
merged 1 commit into from
Jun 26, 2024

Commits on Jun 25, 2024

  1. Fix a span in parse_ty_bare_fn.

    It currently goes one token too far.
    
    Example: line 259 of `tests/ui/abi/compatibility.rs`:
    ```
    test_abi_compatible!(fn_fn, fn(), fn(i32) -> i32);
    ```
    This commit changes the span for the second element from `fn(),` to
    `fn()`, i.e. removes the extraneous comma.
    nnethercote committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    cf0251d View commit details
    Browse the repository at this point in the history