rust/tests/ui/ufcs
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
..
bad-builder.rs test 2024-02-20 03:01:35 +00:00
bad-builder.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
ufcs-explicit-self-bad.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
ufcs-explicit-self-bad.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
ufcs-partially-resolved.rs Use smart-resolve when checking for trait in RHS of UFCS 2023-04-07 05:33:52 +00:00
ufcs-partially-resolved.stderr bless tests 2025-04-27 18:14:55 +02:00
ufcs-polymorphic-paths.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ufcs-qpath-missing-params.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
ufcs-qpath-missing-params.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
ufcs-qpath-self-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ufcs-qpath-self-mismatch.stderr Use final path segment for diagnostic 2025-03-05 23:06:54 +00:00