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

Call poly_project_and_unify_type on types that contain inference types #56838

Merged
merged 1 commit into from
Dec 27, 2018

Commits on Dec 15, 2018

  1. Call poly_project_and_unify_type on types that contain inference types

    Commit f57247c (Ensure that Rusdoc discovers all necessary auto
    trait bounds) added a check to ensure that we only attempt to unify a
    projection predicatre with inference variables. However, the check it
    added was too strict - instead of checking that a type *contains* an
    inference variable (e.g. '&_', 'MyType<_>'), it required the type to
    *be* an inference variable (i.e. only '_' would match).
    
    This commit relaxes the check to use 'ty.has_infer_types', ensuring that
    we perform unification wherever possible.
    
    Fixes rust-lang#56822
    Aaron1011 committed Dec 15, 2018
    Configuration menu
    Copy the full SHA
    a375410 View commit details
    Browse the repository at this point in the history