-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't assume color=always when explicitally specified #31550
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @nrc |
Note: I haven't actually tested this change because rust takes an eternity to build on my poor old laptop. However, I don't expect it to fail (famous last words...). |
|
||
Some(arg) => { | ||
early_error(ErrorOutputType::default(), &format!("argument for --error-format must \ | ||
early_error(ErrorOutputType::HumanReadable(color), &format!("argument for --error-format must \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overlong line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
early_error(ErrorOutputType::HumanReadable(color), | ||
&format!("argument for --error-format must \ | ||
be human or json (instead was \ | ||
`{}`)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this can squeeze on the previous line.
r+ with the style nit addressed |
@bors: r+ |
📌 Commit 03ef55b has been approved by |
Thanks for the quick fix @Stebalien! Nominating for backport as well |
Can we test this somehow to prevent future regressions? Maybe with a run-make test that greps for \x1b or something? |
Accepting for beta since seems awfully minor. |
cc @rust-lang/compiler |
+1 |
Fixes #31546