rust/tests/ui/higher-ranked
Esteban Küber 99196657fc Use tcx.short_string() in more diagnostics
`TyCtxt::short_string` ensures that user visible type paths aren't overwhelming on the terminal output, and properly saves the long name to disk as a side-channel. We already use these throughout the compiler and have been using them as needed when users find cases where the output is verbose. This is a proactive search of some cases to use `short_string`.

We add support for shortening the path of "trait path only".

Every manual use of `short_string` is a bright marker that that error should be using structured diagnostics instead (as they have proper handling of long types without the maintainer having to think abou tthem).

When we don't actually print out a shortened type we don't need the "use `--verbose`" note.

On E0599 show type identity to avoid expanding the receiver's generic parameters.

Unify wording on `long_ty_path` everywhere.
2025-08-07 21:18:00 +00:00
..
leak-check Report higher-ranked trait error when higher-ranked projection goal fails in new solver 2025-04-09 17:53:32 +00:00
subtype [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-bounds Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
anonymous-higher-ranked-lifetime.rs Adjust anonymous-higher-ranked-lifetime.rs 2024-12-10 11:31:13 +08:00
anonymous-higher-ranked-lifetime.stderr Adjust anonymous-higher-ranked-lifetime.rs 2024-12-10 11:31:13 +08:00
builtin-closure-like-bounds.rs Stabilize the 2024 edition 2024-11-22 11:12:15 -08:00
closure-bound-codegen-ice.rs Fix obligation param and bless tests 2024-04-01 22:48:23 -04:00
erroneous-lifetime-bound.rs Move binder and polarity parsing into parse_generic_ty_bound 2024-06-28 19:40:31 -04:00
erroneous-lifetime-bound.stderr Move binder and polarity parsing into parse_generic_ty_bound 2024-06-28 19:40:31 -04:00
higher-lifetime-bounds.rs Simple modification of diagnostic information 2023-12-21 10:17:11 +08:00
higher-lifetime-bounds.stderr Simple modification of diagnostic information 2023-12-21 10:17:11 +08:00
higher-ranked-encoding.rs cleaned up some tests 2025-07-01 16:26:57 +05:00
higher-ranked-invalid-bounds.rs cleaned up some tests 2025-06-03 07:38:06 +05:00
higher-ranked-invalid-bounds.stderr cleaned up some tests 2025-06-03 07:38:06 +05:00
higher-ranked-lifetime-equality.rs Make nll higher ranked equate use bidirectional subtyping in invariant context 2024-02-29 15:27:59 -03:00
higher-ranked-lifetime-equality.stderr Make nll higher ranked equate use bidirectional subtyping in invariant context 2024-02-29 15:27:59 -03:00
higher-ranked-lifetime-error.rs eagerly instantiate binders to avoid relying on sub 2024-03-14 17:19:40 +01:00
higher-ranked-lifetime-error.stderr eagerly instantiate binders to avoid relying on sub 2024-03-14 17:19:40 +01:00
structually-relate-aliases.rs Assert that obligations are empty before deeply normalizing 2024-12-02 22:51:18 +00:00
structually-relate-aliases.stderr Remove Symbol for Named LateParam/Bound variants 2025-07-04 18:14:22 +00:00
subtyping-fn-ptr-coercion.rs Use the right type when coercing fn items to pointers 2024-08-13 16:23:20 -04:00
well-formed-aliases.rs Okay actually check only alias TYPES 2024-05-21 15:56:10 -04:00
well-formed-aliases.stderr Okay actually check only alias TYPES 2024-05-21 15:56:10 -04:00