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

Remove special handling of obsolete impl Trait for .. syntax #121072

Closed
wants to merge 1 commit into from

Commits on Feb 21, 2024

  1. Remove special handling for impl Trait for .. syntax errors.

    The ancient (pre-1.0) RFC 19 suggested using `impl Trait for ..` syntax
    for default traits. That was later changed to `auto trait Trait {}`
    syntax. The parser has special treatment for the `..` syntax, suggesting
    the `auto` syntax.
    
    Given that default traits have not be stabilized and the `..` syntax is
    so old, the special case seems unnecessary, and it gets in the way of
    adding `ErrorGuaranteed` to `TyKind::Err`. This commit removes it and
    the tests.
    nnethercote committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    40f1be0 View commit details
    Browse the repository at this point in the history