Skip to content

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

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

Merged
merged 1 commit into from
Dec 30, 2019

Conversation

petrochenkov
Copy link
Contributor

Ensuring the "tidy"-ness currently requires running rustfmt twice:

./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:

./x.py test tidy --bless

r? @Mark-Simulacrum

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 29, 2019
@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 29, 2019

📌 Commit 5b80a99 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 29, 2019
@bors bors merged commit 5b80a99 into rust-lang:master Dec 30, 2019
@petrochenkov petrochenkov deleted the tidybless branch February 22, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants