Esteban Küber
26c12c7462
Account for bare tuples in field searching logic
...
When looking for the field names and types of a given type, account for tuples. This allows suggestions for incorrectly nested field accesses and field name typos to trigger as intended. Previously these suggestions only worked on `ty::Adt`, including tuple structs which are no different to tuples, so they should behave the same in suggestions.
```
error[E0599]: no method named `get_ref` found for tuple `(BufReader<File>,)` in the current scope
--> $DIR/missing-field-access.rs:11:15
|
LL | let x = f.get_ref();
| ^^^^^^^ method not found in `(BufReader<File>,)`
|
help: one of the expressions' fields has a method of the same name
|
LL | let x = f.0.get_ref();
| ++
```
2025-08-07 21:39:00 +00:00
..
2025-01-09 21:43:25 +01:00
2025-06-30 08:06:08 +00:00
2024-09-12 13:56:01 -04:00
2025-07-04 18:14:22 +00:00
2024-10-15 13:26:59 +02:00
2025-06-03 10:13:33 +02:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2025-03-04 17:45:18 +00:00
2025-03-04 17:45:18 +00:00
2024-09-14 09:25:06 +08:00
2024-09-14 09:25:06 +08:00
2024-11-26 02:50:48 +08:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2025-03-04 17:45:18 +00:00
2024-09-26 17:17:11 +00:00
2024-10-10 01:13:29 +02:00
2025-06-30 08:06:08 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-09-26 17:17:11 +00:00
2025-01-07 16:04:14 +01:00
2024-11-26 02:50:48 +08:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:11:00 +02:00
2025-03-04 17:45:18 +00:00
2024-09-26 17:17:11 +00:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2025-08-07 21:39:00 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-10-15 13:26:59 +02:00
2025-01-24 01:19:50 +00:00
2025-02-28 16:28:41 +00:00
2025-06-07 13:42:30 +02:00
2024-10-29 16:26:57 +00:00
2025-08-02 15:29:16 -04:00
2025-08-02 15:29:16 -04:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-09-26 17:17:11 +00:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:11:00 +02:00
2024-09-27 18:15:37 +00:00
2024-09-27 18:15:37 +00:00
2024-09-27 18:15:37 +00:00
2025-03-20 02:17:14 +00:00
2025-03-20 02:17:14 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2024-10-15 13:26:59 +02:00
2025-01-09 21:43:25 +01:00
2025-01-09 21:43:25 +01:00
2025-01-09 21:43:25 +01:00
2025-01-09 21:43:25 +01:00
2024-08-03 07:57:31 -04:00
2024-10-15 13:11:00 +02:00
2024-10-15 13:11:00 +02:00
2025-03-14 19:50:03 +00:00