mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
2ab8480605
This subsumes the suggestions to borrow arguments with `AsRef`/`Borrow` bounds and those to borrow arguments with `Fn` and `FnMut` bounds. It works for other traits implemented on references as well, such as `std::io::Read`, `std::io::Write`, and `core::fmt::Write`. Incidentally, by making the logic for suggesting borrowing closures general, this removes some spurious suggestions to mutably borrow `FnMut` closures in assignments, as well as an unhelpful suggestion to add a `Clone` constraint to an `impl Fn` argument. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |