rust/tests/ui/recursion
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
..
auxiliary Use non-2015 edition paths in tests that do not test for their resolution 2025-06-03 13:35:31 +02:00
instantiable.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-23122-1.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-23122-1.stderr Move some tests 2024-04-21 15:43:43 -03:00
issue-23122-2.rs Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
issue-23122-2.stderr Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
issue-23302-1.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23302-1.stderr Move tests 2024-04-07 17:38:07 -03:00
issue-23302-2.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23302-2.stderr Move tests 2024-04-07 17:38:07 -03:00
issue-23302-3.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23302-3.stderr Move tests 2024-04-07 17:38:07 -03:00
issue-26548-recursion-via-normalize.rs Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk" 2023-07-21 22:35:57 -07:00
issue-26548-recursion-via-normalize.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-38591-non-regular-dropck-recursion.rs Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
issue-38591-non-regular-dropck-recursion.stderr Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
issue-83150.rs Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
issue-83150.stderr Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
issue-86784.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95134.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursion-tail-call-no-arg-leak.rs cleaned up some tests 2025-07-13 00:03:31 +05:00
recursion-tail-cps.rs cleaned up some tests 2025-07-13 00:03:31 +05:00
recursion.rs tests: remove explicit long type filename hash normalization from some ui tests 2025-03-04 00:21:02 +08:00
recursion.stderr tests: remove explicit long type filename hash normalization from some ui tests 2025-03-04 00:21:02 +08:00
recursive-enum-box.rs Cleaned up 5 tests in tests/ui 2025-04-21 16:16:38 +09:00
recursive-enum.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-enum.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
recursive-impl-trait-iterator-by-ref-67552.rs Rehome tests/ui/issues/ tests [1/?] 2025-07-24 17:01:44 -04:00
recursive-impl-trait-iterator-by-ref-67552.stderr Rehome tests/ui/issues/ tests [1/?] 2025-07-24 17:01:44 -04:00
recursive-reexports.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-reexports.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
recursive-requirements.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-requirements.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
recursive-static-definition.rs const-eval: error when initializing a static writes to that static 2025-06-27 14:39:35 +02:00
recursive-static-definition.stderr const-eval: error when initializing a static writes to that static 2025-06-27 14:39:35 +02:00
recursive-types-are-not-uninhabited.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-types-are-not-uninhabited.stderr Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00