Files
rust/tests/ui
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-05-21 07:24:43 +00:00
2025-05-31 19:49:19 +05:00
2025-03-03 08:52:07 +01:00
2025-05-12 16:35:09 +02:00
2025-05-07 16:29:59 +00:00
2025-05-28 15:14:34 +01:00
2025-05-28 15:14:34 +01:00
2025-05-31 19:49:19 +05:00
2025-03-11 20:26:10 -07:00
2025-05-09 12:09:15 +02:00
2025-05-21 20:38:49 +01:00
2025-05-07 16:29:59 +00:00
2025-04-03 21:41:58 +00:00
2025-05-31 19:49:19 +05:00
2025-04-25 20:50:57 +09:00
2025-04-27 18:14:55 +02:00
2025-05-03 17:22:52 +02:00
2025-04-21 16:16:38 +09:00
2025-05-26 16:35:36 +01:00
2025-03-30 01:32:21 +03:00
2025-05-31 19:49:19 +05:00
2025-01-29 15:45:13 +00:00
2025-03-27 14:11:11 +01:00
2025-05-30 12:14:27 +02:00
2025-05-28 15:14:34 +01:00
2025-04-25 20:50:57 +09:00
2025-05-21 20:20:19 +01:00
2025-05-05 21:09:31 +02:00
2025-05-31 18:34:35 +02:00
2025-02-27 10:26:33 +00: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
2025-05-09 22:21:35 +05:00