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 misleading type annotation diagonstics #69456

Merged
merged 1 commit into from
Apr 25, 2020

Commits on Apr 8, 2020

  1. fix misleading type annotation diagonstics

    This solves the method call part of issue
    rust-lang#69455
    I added a `target_span` field so as to pin down the exact location of
    the error. We need a dedicated field `found_exact_method_call` to
    prioritize situations like the test case `issue-69455.rs`. If we reuse
    `found_method_call`, `found_local_pattern` will show up first. We can
    not move `found_method_call` up, it is undesirable in various
    situations.
    contrun committed Apr 8, 2020
    Configuration menu
    Copy the full SHA
    3ae974f View commit details
    Browse the repository at this point in the history