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

Remove invalid case for mutable borrow suggestion #105655

Merged
merged 2 commits into from
Jan 9, 2023

Commits on Dec 13, 2022

  1. Remove invalid case for mutable borrow suggestion

    If we have a call such as `foo(&mut buf)` and after reference
    collapsing the type is inferred as `&T` where-as the required type is
    `&mut T`, don't suggest `foo(&mut mut buf)`. This is wrong syntactically
    and the issue lies elsewhere, not in the borrow.
    
    Fixes rust-lang#105645
    RedDocMD committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    9c8bf51 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. Clean up mut keyword check

    RedDocMD committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    afefbb6 View commit details
    Browse the repository at this point in the history