about summary refs log tree commit diff
path: root/tests/ui/diagnostic-width
AgeCommit message (Collapse)AuthorLines
2023-12-13Tweak `short_ty_string` to reduce number of filesEsteban Küber-6/+4
When shortening types and writing them to disk, make `short_ty_string` capable of reusing the same file, instead of writing a file per shortened type.
2023-11-24Show number in error message even for one errorNilstrieb-11/+11
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-13Use `$message_type` as the tagJeremy Fitzhardinge-3/+3
`type` turned out to be controversial.
2023-09-19Add `type` field to json diagnostic outputsJeremy Fitzhardinge-3/+3
Currently the json-formatted outputs have no way to unambiguously determine which kind of message is being output. A consumer can look for specific fields in the json object (eg "message"), but there's no guarantee that in future some other kind of output will have a field of the same name. This PR adds a `"type"` field to add json outputs which can be used to unambiguously determine which kind of output it is. The mapping is: diagnostic: regular compiler diagnostics artifact: artifact notifications future_incompat: Report of future incompatibility unused_extern: Unused crate warnings/errors This matches the "internally tagged" representation for serde enums.
2023-07-24new unstable option: -Zwrite-long-types-to-diskMahdi Dibaiee-3/+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-05-12Note base types of coercionMichael Goulet-2/+2
2023-03-28Create AnnotationColumn struct to fix hard tab column numbers in errorspommicket-0/+32
2023-01-30Modify primary span label for E0308Esteban Küber-4/+4
The previous output was unintuitive to users.
2023-01-11Hide more of long types in E0271Esteban Küber-0/+56
Fix #40186.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+383