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 object safety errors when assoc type is missing #116405

Merged
merged 3 commits into from
Oct 31, 2023

Commits on Oct 30, 2023

  1. Detect object safety errors when assoc type is missing

    When an associated type with GATs isn't specified in a `dyn Trait`, emit
    an object safety error instead of only complaining about the missing
    associated type, as it will lead the user down a path of three different
    errors before letting them know that what they were trying to do is
    impossible to begin with.
    
    Fix rust-lang#103155.
    estebank committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    17a6ae2 View commit details
    Browse the repository at this point in the history
  2. Add test

    estebank committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    8c55772 View commit details
    Browse the repository at this point in the history
  3. Sort errors

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