dianne
2ab8480605
Suggest borrowing arguments in generic positions when trait bounds are satisfied
...
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.
2024-11-13 20:29:40 -08:00
..
2024-11-13 20:29:40 -08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-11-13 20:29:40 -08:00
2024-11-13 20:29:40 -08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-24 22:21:15 +00:00
2024-04-24 22:21:15 +00:00
2024-04-24 22:21:15 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-07-26 14:41:56 -04:00
2024-04-15 21:45:47 -04:00
2024-02-16 20:02:50 +00:00
2024-04-15 21:36:52 -04:00
2024-04-24 22:21:15 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-09 23:25:31 +00:00
2024-05-09 23:25:31 +00:00
2024-11-13 16:36:23 -08:00
2024-04-12 04:46:31 +00:00
2024-04-12 04:46:31 +00:00
2024-03-06 12:35:07 -08:00
2024-04-11 16:41:41 +00:00
2024-11-13 20:29:40 -08:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-04-11 16:41:41 +00:00
2024-03-17 21:32:26 +00:00
2024-06-20 04:25:17 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-17 21:45:03 +00:00
2024-03-17 21:45:03 +00:00
2024-11-13 20:29:40 -08:00
2024-11-13 20:29:40 -08:00
2024-11-13 20:29:40 -08:00
2024-04-11 16:41:40 +00:00
2024-02-16 20:02:50 +00:00
2024-04-11 16:41:40 +00:00
2024-04-11 16:41:41 +00:00
2024-02-16 20:02:50 +00:00
2024-04-11 16:41:41 +00:00
2024-04-24 22:21:15 +00:00
2024-04-24 22:21:15 +00:00
2024-04-24 22:21:15 +00:00