We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if cfg
#[cfg]
1 parent e6707df commit 4845665Copy full SHA for 4845665
compiler/rustc_errors/src/emitter.rs
@@ -2677,10 +2677,7 @@ fn from_stderr(color: ColorConfig) -> Destination {
2677
/// On Windows, BRIGHT_BLUE is hard to read on black. Use cyan instead.
2678
///
2679
/// See #36178.
2680
-#[cfg(windows)]
2681
-const BRIGHT_BLUE: Color = Color::Cyan;
2682
-#[cfg(not(windows))]
2683
-const BRIGHT_BLUE: Color = Color::Blue;
+const BRIGHT_BLUE: Color = if cfg!(windows) { Color::Cyan } else { Color::Blue };
2684
2685
impl Style {
2686
fn color_spec(&self, lvl: Level) -> ColorSpec {
0 commit comments