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

Prefer ObjectCandidate to ImplCandidate if both apply #24056

Merged
merged 1 commit into from
Apr 6, 2015

Commits on Apr 6, 2015

  1. If we find a blanket impl for Trait but we're matching on an object

    `Trait`, prefer the object. Also give a nice error for attempts to
    manually `impl Trait for Trait`, since they will be ineffectual.
    
    Fixes rust-lang#24015.
    
    Fixes rust-lang#24051.
    Fixes rust-lang#24037.
    Fixes rust-lang#23853.
    Fixes rust-lang#21942.
    cc rust-lang#21756.
    nikomatsakis committed Apr 6, 2015
    Configuration menu
    Copy the full SHA
    0d56699 View commit details
    Browse the repository at this point in the history