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

Note when a a move/borrow error is caused by a deref coercion #75304

Merged
merged 1 commit into from
Sep 16, 2020

Commits on Sep 11, 2020

  1. Note when a a move/borrow error is caused by a deref coercion

    Fixes rust-lang#73268
    
    When a deref coercion occurs, we may end up with a move error if the
    base value has been partially moved out of. However, we do not indicate
    anywhere that a deref coercion is occuring, resulting in an error
    message with a confusing span.
    
    This PR adds an explicit note to move errors when a deref coercion is
    involved. We mention the name of the type that the deref-coercion
    resolved to, as well as the `Deref::Target` associated type being used.
    Aaron1011 committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    d18b4bb View commit details
    Browse the repository at this point in the history