Rollup merge of #133875 - onur-ozkan:early-return-rustfmt, r=jieyouxu

handle `--json-output` properly

Because `rustfmt` doesn't support JSON output, `x test --json-output` doesn't respect the `--json-output` flag during formatting step. This change makes that `x test` skips the formatting step if `--json-output` is specified. In addition, resolves #133855 with the 2nd commit.
This commit is contained in:
Matthias Krüger 2024-12-06 21:21:06 +01:00 committed by GitHub
commit 73d2a1615f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available