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

suggest_borrow_generic_arg: instantiate clauses properly #133130

Merged
merged 1 commit into from
Nov 18, 2024

Commits on Nov 18, 2024

  1. suggest_borrow_generic_arg: instantiate clauses properly

    Fixes issue 133118.
    This also modifies `tests/ui/moves/moved-value-on-as-ref-arg.rs` to have more
    useful bounds on the tests for suggestions to borrow `Borrow` and `BorrowMut`
    arguments. With its old tautological `T: BorrowMut<T>` bound, this fix would
    make it suggest a shared borrow for that argument.
    dianne committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    546ba3d View commit details
    Browse the repository at this point in the history