]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #67701 - petrochenkov:tidybless, r=Mark-Simulacrum
authorYuki Okushi <huyuumi.dev@gmail.com>
Mon, 30 Dec 2019 05:07:56 +0000 (14:07 +0900)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2019 05:07:56 +0000 (14:07 +0900)
commitb6244af566d173ac266df937a5608dddce182ab0
tree4a8d0282b603b3e6af5fe9f999ca968975b70ad9
parent88e322c4f110206b73e01064d837adc7588c32c5
parent5b80a99a9f72d0f95641b9ab9358fa3801d68be0
Rollup merge of #67701 - petrochenkov:tidybless, r=Mark-Simulacrum

tidy: Enforce formatting rather than just check it if `--bless` is specified

Ensuring the "tidy"-ness currently requires running `rustfmt` twice:
```sh
./x.py fmt && ./x.py test tidy
```
, once to actually format code and the second time as a part of tidy to check that the code is formatted.

Running `rustfmt` is slow, so we don't want to run it twice.

With this PR tidy enforces the formatting rather than just checks it if `--bless` was passed to it:
```sh
./x.py test tidy --bless
```

r? @Mark-Simulacrum