tests/test-check-rust-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 11 Feb 2021 20:36:46 -0800
changeset 46494 d67732a4b58a
parent 45987 d42809b6b10f
child 48297 9ebc10ad4a04
permissions -rw-r--r--
branching: merge with stable

#require rustfmt test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..
  $ RUSTFMT=$(rustup which --toolchain nightly-2020-10-04 rustfmt)
  $ for f in `testrepohg files 'glob:**/*.rs'` ; do
  >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
  > done