Auto merge of #22141 - pyfisch:add-note-fmt, r=SimonSapin

Hint ./mach fmt

Just thought that a note how to fix if rustfmt fails would be nice.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22141)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-11-07 20:57:56 -05:00 committed by GitHub
commit b1fd6237d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,6 +331,8 @@ class MachCommands(CommandBase):
tidy_failed = tidy.scan(not all_files, not no_progress, stylo=stylo)
self.install_rustfmt()
rustfmt_failed = self.call_rustup_run(["cargo", "fmt", "--", "--check"])
if rustfmt_failed:
print("Run `./mach fmt` to fix the formatting")
return tidy_failed or manifest_dirty or rustfmt_failed
@Command('test-webidl',