tests/test-check-rust-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 30 Oct 2020 13:26:18 -0700
changeset 45866 996cd73431a3
parent 44732 f44a7d8660ea
child 45987 d42809b6b10f
permissions -rw-r--r--
help: document the new [command-templates] config section Differential Revision: https://phab.mercurial-scm.org/D9265

#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