Esteban Küber
7dfc3e9af4
Rework borrowing suggestions to use Expr instead of just Span
...
In the suggestion machinery for borrowing expressions and types, always use the available obligation `Span` to find the appropriate `Expr` to perform appropriateness checks no the `ExprKind` instead of on the textual snippet corresponding to the `Span`.
Unify the logic for the case where `&` *and* `&mut` are appropriate with the logic for only one of those cases.
Handle the case when `S::foo()` should have been `<&S>::foo()` (instead of suggesting the prior `&S::foo()`.
2025-07-10 17:23:29 +00:00
..
2024-11-26 02:50:48 +08:00
2024-12-27 19:58:16 +11:00
2024-12-09 17:31:16 +08:00
2024-12-09 17:31:16 +08:00
2024-11-26 02:50:48 +08:00
2024-12-02 18:43:37 +01:00
2025-02-10 20:21:39 +00:00
2025-02-21 00:41:17 +00:00
2025-02-10 20:21:39 +00:00
2025-05-21 18:59:04 +10:00
2025-05-21 18:59:04 +10:00
2024-11-26 02:50:48 +08:00
2025-04-08 23:06:31 +03:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2025-01-21 06:59:15 -07:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-09-20 10:02:14 -07:00
2024-12-02 18:43:37 +01:00
2025-06-16 23:04:35 +00:00
2025-06-16 23:04:35 +00:00
2024-12-27 19:58:16 +11:00
2025-01-01 15:58:29 +01:00
2025-06-16 23:04:35 +00:00
2025-06-16 23:04:35 +00:00
2025-06-16 23:04:35 +00:00
2025-06-16 23:04:35 +00:00
2025-01-01 15:58:29 +01:00
2025-06-16 23:04:35 +00:00
2025-01-01 15:58:29 +01:00
2025-06-16 23:04:35 +00:00
2025-06-16 23:04:35 +00:00
2025-06-16 23:04:35 +00:00
2025-06-16 23:04:36 +00:00
2025-06-16 23:04:36 +00:00
2025-02-20 12:40:58 +01:00
2025-02-09 20:36:59 -08:00
2025-02-09 20:36:59 -08:00
2024-11-26 02:50:48 +08:00
2025-01-07 16:04:14 +01:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2025-01-23 20:51:29 +08:00
2025-02-10 20:21:39 +00:00
2025-06-02 15:37:15 +00:00
2025-06-07 13:42:30 +02:00
2025-06-30 08:45:43 +00:00
2025-07-01 16:10:07 +02:00
2025-07-01 16:10:07 +02:00
2025-01-23 20:51:29 +08:00
2025-01-23 20:51:29 +08:00
2025-01-07 16:04:14 +01:00
2025-01-07 16:04:14 +01:00
2025-04-08 23:06:31 +03:00
2024-12-12 23:36:27 +00:00
2025-01-07 16:04:14 +01:00
2025-02-14 00:44:10 -08:00
2025-06-16 23:04:35 +00:00
2025-07-10 17:23:29 +00:00