Skip to content

Commit d2633d6

Browse files
authored
use specific rustfmt nightly (#51)
rust-lang/rust#51699 has broken the nightly Rust toolchain. Our Travis configuration allows failures when building with that toolchain, but we use nightly rustfmt when building with all toolchains, so the bustage affects our stable and beta builds too. To work around the problem, this branch uses a specific rustfmt nightly rather than the latest one. (We might want to keep doing this even after the bustage is fixed, to avoid such bustage in the future.)
1 parent 12e5a10 commit d2633d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ matrix:
99
- rust: nightly
1010
fast_finish: true
1111
before_script:
12-
- rustup toolchain install nightly
13-
- rustup component add rustfmt-preview --toolchain nightly
12+
- rustup toolchain install nightly-2018-06-18
13+
- rustup component add rustfmt-preview --toolchain nightly-2018-06-18
1414
- command -v rustfmt || cargo install --force rustfmt-nightly
1515
script:
16-
- cargo +nightly fmt --all -- --check
16+
- cargo +nightly-2018-06-18 fmt --all -- --check
1717
- cargo build --verbose
1818
- cargo test --verbose
1919
- ./run-all-examples.sh

0 commit comments

Comments
 (0)