tests/test-check-rust-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 16 Sep 2021 15:21:22 +0200
changeset 48002 44fc75bd1580
parent 45987 d42809b6b10f
child 48297 9ebc10ad4a04
permissions -rw-r--r--
dirstate: use `reset_state` instead of `dropfile` in test-rebuildstate.t As `dirstatemap.dropfile` is on its way out. Differential Revision: https://phab.mercurial-scm.org/D11442

#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