Skip to content

ICE reports ignore --color=never #149566

@langston-barrett

Description

@langston-barrett
rustc +nightly --color=never 123629.rs
// 123629.rs
//@ known-bug: #123629
#![feature(generic_assert)]

fn foo()
where
    for<const N: usize = { assert!(u) }> ():,
{
}

fn main() {}

I expected to see this happen: No colors in the output

Instead, this happened: Colors in the output, around note:

I would guess that the problem is that this unconditionally uses Auto:

stderr_destination(rustc_errors::ColorConfig::Auto),

Meta

rustc --version --verbose:

rustc 1.93.0-nightly (b84478a1c 2025-11-30)
binary: rustc
commit-hash: b84478a1c477756cd3e1974eda867a6bb31e8902
commit-date: 2025-11-30
host: x86_64-unknown-linux-gnu
release: 1.93.0-nightly
LLVM version: 21.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions