tests/test-check-rust-format.t
changeset 45987 d42809b6b10f
parent 44732 f44a7d8660ea
child 48297 9ebc10ad4a04
equal deleted inserted replaced
45986:f9f8d8aa9a92 45987:d42809b6b10f
     1 #require rustfmt test-repo
     1 #require rustfmt test-repo
     2 
     2 
     3   $ . "$TESTDIR/helpers-testrepo.sh"
     3   $ . "$TESTDIR/helpers-testrepo.sh"
     4 
     4 
     5   $ cd "$TESTDIR"/..
     5   $ cd "$TESTDIR"/..
     6   $ RUSTFMT=$(rustup which --toolchain nightly rustfmt)
     6   $ RUSTFMT=$(rustup which --toolchain nightly-2020-10-04 rustfmt)
     7   $ for f in `testrepohg files 'glob:**/*.rs'` ; do
     7   $ for f in `testrepohg files 'glob:**/*.rs'` ; do
     8   >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
     8   >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
     9   > done
     9   > done