mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
1faa95d289
`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):
e69c7306e2/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).
4 lines
142 B
Rust
4 lines
142 B
Rust
// compile-flags: --error-format=human --cfg )
|
|
// error-pattern: invalid `--cfg` argument: `)` (expected `key` or `key="value"`)
|
|
fn main() {}
|