tests/test-check-rust-format.t
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 11 Aug 2020 13:43:43 +0530
changeset 45386 034d94f8761b
parent 44732 f44a7d8660ea
child 45987 d42809b6b10f
permissions -rw-r--r--
requirements: introduce constants for `shared` and `relshared` requirements We add them to `WORKING_DIR_REQUIREMENTS` too as they should be stored in `.hg/requires` and have information about the type of working copy. Differential Revision: https://phab.mercurial-scm.org/D8926

#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