about summary refs log tree commit diff
path: root/tests/ui/diagnostic-flags
AgeCommit message (Collapse)AuthorLines
2025-08-22ci: Begin running ui tests with `rust.debuginfo-level-tests=1`Martin Nordholts-0/+4
To reduce risk of regressing on generating debuginfo e.g. in the form of ICE:s. This will also ensure that future ui tests support different debuginfo levels. When I looked at run time for different CI jobs, **x86_64-gnu-debug** was far from the bottle neck, so it should be fine to make it perform more work.
2025-07-17cleaned up some testsKivooeo-7/+9
Reverting file name weird-exprs.rs due to its historical use, recognition in community and references
2025-07-14moved testsKivooeo-0/+65
2025-07-05cleaned up some testsKivooeo-2/+5
2025-07-01moved testsKivooeo-0/+12
2025-03-30Remove attribute `#[rustc_error]`Vadim Petrochenkov-8/+12
2025-02-11Reject `impl Trait` bounds in various places where we unconditionally warned ↵Oli Scherer-10/+9
since 1.0
2024-12-10Adjust `allow-non-lint-warnings.rs`Jieyou Xu-0/+35
- Document `allow-non-lint-warnings.rs` - Move `allow-non-lint-warnings.rs` under `tests/ui/diagnostic-flags/` - Improve the test to use two *differential* revisions: 1. One revision checks that without `-A warnings` the code sample actually emits a warning. 2. The other revision checks that `-A warnings` suppresses the warning. This makes sure that if the code sample no longer warns, the test doesn't silently pass but fail to check its intended purpose.
2024-04-25tests: remove few ignore-stage2klensy-2/+0
beta was branched long ago, so can be removed
2024-03-18Side-step small SVG width divergence by setting min-widthEsteban Küber-1/+1
2024-03-02On tests that specify --color=always emit SVG file with stderr outputEsteban Kuber-3/+32
Leverage `anstyle-svg`, as `cargo` does now, to emit `.svg` files instead of `.stderr` files for tests that explicitly enable color output. This will make reviewing changes to the graphical output of tests much more human friendly.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-4/+4
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-06-29Update UI tests which relied on old behavior of constructing a default error ↵许杰友 Jieyou Xu (Joe)-0/+1
handler every time `early_warn` is called Skip `colored-session-opt-error.rs` on Windows hosts This is very cursed as to why it fails on Windows CI specifically: - The test emits a *warning*. - *Warnings*, and only warnings *specifically*, have a different 256-color between Windows and non-Windows hosts (other levels `set_intense(true)` unconditionally): https://github.com/rust-lang/rust/blob/e69c7306e2be08939d95f14229e3f96566fb206c/compiler/rustc_errors/src/lib.rs#L1792-L1794 Therefore, I added `// ignore-windows` test header to skip this test on Windows (it's sufficient to test color is enabled on at least one non-Windows host).
2023-06-29Set error handler output format as soon as possible许杰友 Jieyou Xu (Joe)-0/+5
2023-02-09Introduce `-Zterminal-urls` to use OSC8 for error codesEsteban Küber-0/+15
Terminals supporting the OSC8 Hyperlink Extension can support inline anchors where the text is user defineable but clicking on it opens a browser to a specified URLs, just like `<a href="URL">` does in HTML. https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda