tests/test-check-rust-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 22 Oct 2020 13:38:14 -0700
changeset 45828 e0dbfbd4062c
parent 44732 f44a7d8660ea
child 45987 d42809b6b10f
permissions -rw-r--r--
errors: set detailed exit code to 20 for locking errors This is per https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. Differential Revision: https://phab.mercurial-scm.org/D9242

#require rustfmt test-repo

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

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