about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0275.stderr
AgeCommit message (Collapse)AuthorLines
2025-08-07Use `tcx.short_string()` in more diagnosticsEsteban Küber-3/+5
`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-03-04tests: remove explicit long type filename hash normalization from some ui tests许杰友 Jieyou Xu (Joe)-2/+2
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-07-25write-long-types-to-disk: update testsMahdi Dibaiee-4/+3
2023-07-24new unstable option: -Zwrite-long-types-to-diskMahdi Dibaiee-2/+2
This option guards the logic of writing long type names in files and instead using short forms in error messages in rustc_middle/ty/error behind a flag. The main motivation for this change is to disable this behaviour when running ui tests. This logic can be triggered by running tests in a directory that has a long enough path, e.g. /my/very-long-path/where/rust-codebase/exists/ This means ui tests can fail depending on how long the path to their file is. Some ui tests actually rely on this behaviour for their assertions, so for those we enable the flag manually.
2023-03-21evaluate: improve and fix recursion depth handlinglcnr-1/+1
2023-01-11Note predicate span on ImplDerivedObligationMichael Goulet-1/+1
2023-01-11Move /src/test to /testsAlbert Larsan-0/+19