rust/tests/ui/recursion
Trevor Gross f5dda19775
Rollup merge of #144039 - estebank:short-paths, r=fee1-dead
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).
2025-08-08 14:22:43 -05:00
..
auxiliary
instantiable.rs
issue-23122-1.rs
issue-23122-1.stderr
issue-23122-2.rs
issue-23122-2.stderr
issue-23302-1.rs
issue-23302-1.stderr
issue-23302-2.rs
issue-23302-2.stderr
issue-23302-3.rs
issue-23302-3.stderr
issue-26548-recursion-via-normalize.rs
issue-26548-recursion-via-normalize.stderr
issue-38591-non-regular-dropck-recursion.rs
issue-38591-non-regular-dropck-recursion.stderr
issue-83150.rs
issue-83150.stderr
issue-86784.rs
issue-95134.rs
recursion-tail-call-no-arg-leak.rs
recursion-tail-cps.rs
recursion.rs
recursion.stderr
recursive-enum-box.rs
recursive-enum.rs
recursive-enum.stderr
recursive-impl-trait-iterator-by-ref-67552.rs
recursive-impl-trait-iterator-by-ref-67552.stderr
recursive-reexports.rs
recursive-reexports.stderr
recursive-requirements.rs
recursive-requirements.stderr
recursive-static-definition.rs
recursive-static-definition.stderr
recursive-types-are-not-uninhabited.rs
recursive-types-are-not-uninhabited.stderr