Files
rust/tests/ui
Matthias Krüger c77191f46b Rollup merge of #142034 - estebank:issue-141258, r=davidtwco
Detect method not being present that is present in other tuple types

When a method is not present because of a trait bound not being met, and that trait bound is on a tuple, we check if making the tuple have no borrowed types makes the method to be found and highlight it if it does. This is a common problem for Bevy in particular and ORMs in general.

<img width="1166" alt="Screenshot 2025-06-04 at 10 38 24 AM" src="https://github.com/user-attachments/assets/d257c9ea-c2d7-42e7-8473-8b93aa54b8e0" />

Address rust-lang/rust#141258. I believe that more combination of cases in the tuple types should be handled (like adding borrows and checking when a specific type needs to not be a borrow while the rest stay the same), but for now this handles the most common case.
2025-06-12 22:09:43 +02:00
..
2025-05-21 07:24:43 +00:00
2025-06-11 17:49:03 +05:00
2025-06-06 20:52:34 +00:00
2025-06-11 20:51:49 +05:00
2025-06-04 17:48:50 +05:00
2025-03-03 08:52:07 +01:00
2025-06-04 17:48:50 +05:00
2025-05-12 16:35:09 +02:00
2025-06-06 19:53:12 +00:00
2025-06-08 01:14:05 +05:00
2025-06-11 17:49:03 +05:00
2025-06-08 01:14:05 +05:00
2025-06-04 19:32:06 +05:00
2025-06-06 20:52:34 +00:00
2025-06-02 11:00:46 +02:00
2025-06-11 20:51:49 +05:00
2025-05-31 19:49:19 +05:00
2025-06-11 17:49:03 +05:00
2025-06-08 01:14:05 +05:00
2025-06-11 20:51:49 +05:00
2025-03-11 20:26:10 -07:00
2025-05-09 12:09:15 +02:00
2025-06-03 10:52:32 -07:00
2025-06-03 11:45:58 +02:00
2025-06-08 01:14:05 +05:00
2025-06-11 20:51:49 +05:00
2025-06-03 07:38:06 +05:00
2025-06-05 20:03:29 +05:00
2025-06-08 11:25:09 +05:00
2025-06-11 17:49:03 +05:00
2025-06-03 14:50:22 +10:00
2025-05-31 19:49:19 +05:00
2025-06-08 11:25:09 +05:00
2025-01-29 15:45:13 +00:00
2025-03-27 14:11:11 +01:00
2025-04-25 20:50:57 +09:00
2025-05-05 21:09:31 +02:00
2025-06-08 03:44:44 +05:00
2025-04-03 21:41:58 +00:00
2025-02-04 21:42:43 +05:30
2025-04-03 21:41:58 +00:00
2025-05-07 21:51:41 +05:00
2025-04-04 16:32:18 +02:00