-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Open
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
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:
rust/compiler/rustc_driver_impl/src/lib.rs
Line 1481 in 646a3f8
| 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
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.