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

resolve: further improvements to "try using the enum's variant" diagnostic #77855

Merged

Commits on Oct 15, 2020

  1. resolve: suggest variants with placeholders

    This commit improves the diagnostic modified in rust-lang#77341 to
    suggest not only those variants which do not have fields, but those with
    fields (by suggesting with placeholders).
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    adf31e9 View commit details
    Browse the repository at this point in the history
  2. resolve: improve "try using tuple struct" message

    This commit improves the tuple struct case added in rust-lang#77341
    so that the context is mentioned in more of the message.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    f897162 View commit details
    Browse the repository at this point in the history