mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
c1f8a3ffb2
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 #105645