File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 3
3
set -xeu
4
4
cd " $( dirname " $0 " ) /.."
5
5
6
- # Ensure we have the most up-to-date `rustfmt`.
7
- cargo install -f rustfmt
6
+ rustup update nightly
7
+ rustup component add rustfmt --toolchain nightly
8
8
9
9
# Run `rustfmt` on the crate! If `rustfmt` can't make a long line shorter, it
10
10
# prints an error and exits non-zero, so tell it to kindly shut its yapper and
11
11
# make sure it doesn't cause us to exit this whole script non-zero.
12
- cargo fmt --quiet || true
13
-
14
- # Exit non-zero if this resulted in any diffs.
15
- ./ci/assert-no-diff.sh
16
-
12
+ rustup run nightly cargo fmt -- --check
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ case "$BINDGEN_JOB" in
14
14
# Need rustfmt to compare the test expectations.
15
15
rustup update nightly
16
16
rustup component add rustfmt
17
- export RUSTFMT=" $( rustup which rustfmt) "
17
+ export RUSTFMT=" $( rustup which rustfmt) "
18
18
cargo test $BINDGEN_PROFILE --features " $BINDGEN_FEATURES "
19
19
./ci/assert-no-diff.sh
20
20
;;
@@ -33,8 +33,7 @@ case "$BINDGEN_JOB" in
33
33
./ci/assert-docs.sh
34
34
./ci/test-book.sh
35
35
./ci/no-includes.sh
36
- # `rustfmt` isn't reaching a fixed point on bindgen
37
- # code... https://github.com/rust-lang/rustfmt/issues/1376
36
+ # Disabled because https://github.com/rust-lang/rustfmt/issues/3799.
38
37
# ./ci/assert-rustfmt.sh
39
38
;;
40
39
You can’t perform that action at this time.
0 commit comments