tests/test-check-rust-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 14 Apr 2021 18:34:42 +0200
changeset 46951 338ab1d89ddb
parent 46002 d42809b6b10f
child 48297 9ebc10ad4a04
permissions -rw-r--r--
clone: use `get_clone_path` "Surprisingly", the new API is well suited for `hg clone` too. Differential Revision: https://phab.mercurial-scm.org/D10417

#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