Guillaume Gomez
cd0adc9d7b
Rollup merge of #140370 - WaffleLapkin:unqualified, r=jdonszelmann
...
Improve diagnostics for usage of qualified paths within tuple struct exprs/pats
For patterns the old diagnostic was just incorrect, but I also added machine applicable suggestions.
For context, this special cases errors for `<T as Trait>::Assoc(..)` patterns and expressions (latter is just a call). Tuple struct patterns and expressions both live in the value namespace, so they are not forwarded through associated *types*.
r? ``@jdonszelmann``
cc ``@petrochenkov`` in https://github.com/rust-lang/rust/pull/80080#issuecomment-800630582 you were wondering why it doesn't work for types, that's why — tuple patterns are resolved in the value namespace.
2025-06-01 19:35:41 +02:00
..
2025-01-06 16:08:29 -08:00
2025-04-03 21:41:58 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2024-11-26 02:50:48 +08:00
2024-10-15 13:11:00 +02: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-02-10 20:21:39 +00:00
2024-12-30 14:56:21 +07:00
2025-02-10 20:21:39 +00:00
2025-04-30 10:44:24 +03:00
2025-04-30 10:44:24 +03:00
2024-07-09 07:44:17 +00:00
2024-07-09 07:44:17 +00:00
2024-11-26 02:50:48 +08:00
2025-01-06 17:58:30 +00:00
2025-02-24 09:26:54 +00:00
2025-02-24 09:26:54 +00:00
2024-12-27 19:58:16 +11:00
2025-05-06 17:04:03 +02:00
2024-07-17 19:08:37 +08: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-01-06 17:58:30 +00:00
2025-01-06 17:58:30 +00:00
2025-01-06 17:58:30 +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-07-26 14:41:56 -04:00
2025-02-21 19:32:45 +00:00
2025-02-21 19:32:45 +00:00
2025-02-21 19:32:45 +00:00
2025-02-21 19:32:45 +00:00
2025-02-10 20:21:39 +00:00
2025-04-30 10:44:24 +03:00
2025-04-30 10:44:24 +03:00
2025-01-06 16:08:29 -08:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +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-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2025-02-26 05:11:18 +09:00
2025-02-26 05:11:18 +09:00
2025-03-30 01:32:21 +03:00
2025-03-30 01:32:21 +03:00
2025-03-30 01:32:21 +03:00
2025-02-10 20:21:39 +00:00
2025-02-14 00:44:10 -08:00
2025-02-14 00:44:10 -08:00
2024-10-29 16:26:57 +00:00
2025-04-08 23:06:31 +03:00
2025-02-14 00:37:23 +01:00
2025-02-14 00:37:23 +01:00
2024-10-29 16:26:57 +00:00
2025-04-08 23:06:31 +03:00
2025-02-14 00:37:23 +01:00
2024-11-12 02:08:39 +00:00
2024-11-12 02:08:39 +00:00
2024-11-12 02:08:39 +00:00
2024-11-12 02:08:39 +00:00
2024-12-07 21:29:58 +00:00
2025-04-08 23:06:31 +03:00
2024-12-07 22:18:51 +00:00
2025-03-03 23:53:42 +00:00
2025-03-03 23:53:42 +00:00
2024-10-16 13:44:56 -04:00
2025-02-10 20:21:39 +00:00
2025-04-09 20:26:58 +00:00
2025-04-09 20:26:58 +00:00
2024-09-25 13:13:04 -04:00
2024-09-25 13:13:04 -04:00
2024-09-25 13:13:04 -04:00
2025-01-06 18:04:33 +00:00
2025-01-06 18:04:33 +00:00
2025-02-10 20:21:39 +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-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-23 18:54:08 +00:00
2024-11-23 18:54:08 +00:00
2024-11-26 02:50:48 +08:00
2024-12-07 21:29:58 +00:00
2025-04-13 21:48:53 +03:00
2025-04-13 21:48:53 +03:00
2025-03-14 19:50:03 +00:00
2024-12-07 21:29:58 +00:00
2025-05-24 23:31:07 +02:00
2025-02-14 00:44:10 -08:00
2025-02-14 00:44:10 -08:00
2025-03-11 16:32:56 +00:00
2025-03-30 02:39:19 +00:00
2025-04-29 03:07:24 +00:00
2025-04-29 03:07:24 +00:00
2025-04-29 03:07:24 +00:00
2025-04-29 03:07:24 +00:00
2024-10-29 16:26:57 +00:00
2025-04-08 23:06:31 +03:00
2025-01-07 16:04:14 +01:00
2025-04-30 18:07:52 +00:00
2025-04-30 18:07:52 +00:00
2024-11-23 18:54:08 +00:00
2024-12-11 19:53:40 +00:00
2024-12-30 14:56:21 +07:00
2025-04-08 23:06:31 +03:00
2025-01-03 02:45:29 +00:00
2025-04-30 10:44:24 +03:00
2025-04-30 10:44:24 +03:00
2025-04-30 10:44:24 +03:00
2025-04-27 18:10:08 +02:00
2025-04-27 18:10:08 +02:00
2025-04-27 18:10:08 +02:00