-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Run Clippy without json-rendered flag #63781
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
cc @ehuss/@alexcrichton |
Please keep colors by adding both |
@oli-obk I tried it before and it didn't work:
diffdiff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index 4e49aaa16ea..3a5901156b4 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -875,7 +875,8 @@ impl<'a> Builder<'a> {
}
if cmd == "clippy" {
- extra_args.push_str("-Zforce-unstable-if-unmarked");
+ extra_args.push_str("-Zforce-unstable-if-unmarked \
+ --json=diagnostic-rendered-ansi --error-format=json");
}
if !extra_args.is_empty() { |
Huh I thought we had a setup to allow |
Using |
I'm not sure I understand this (colors should work fine). |
Ah, wonderful @bors r=oli-obk,ehuss |
📌 Commit 5cf43bd has been approved by |
Run Clippy without json-rendered flag Removed in rust-lang#62766 Replacing it with `--json=diagnostic-rendered-ansi` fails: ``` error: using `--json` requires also using `--error-format=json` ``` Running `./x.py clippy src/libstd` locally works fine (with colors) on Linux so I don't know if there is something to fix.
Rollup of 6 pull requests Successful merges: - #61236 (take into account the system theme) - #63717 (Fix nested eager expansions in arguments of `format_args`) - #63747 (update Miri) - #63772 (ci: move libc mirrors to the rust-lang-ci-mirrors bucket) - #63780 (Improve diagnostics: break/continue in wrong context) - #63781 (Run Clippy without json-rendered flag) Failed merges: r? @ghost
Removed in #62766
Replacing it with
--json=diagnostic-rendered-ansi
fails:Running
./x.py clippy src/libstd
locally works fine (with colors) on Linux so I don't know if there is something to fix.