tests/test-check-rust-format.t
author Antoine Cezar <antoine.cezar@octobus.net>
Fri, 05 Jun 2020 08:48:09 +0200
changeset 45000 5965efb609b6
parent 44844 f44a7d8660ea
child 46002 d42809b6b10f
permissions -rw-r--r--
hg-core: add FindRoot operation to find repository root path Differential Revision: https://phab.mercurial-scm.org/D8609

#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