tests/test-check-rust-format.t
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 19 Apr 2021 10:49:15 -0700
changeset 46975 14ddb1dca2c0
parent 45987 d42809b6b10f
child 48297 9ebc10ad4a04
permissions -rw-r--r--
errors: make OutOfBandError extend Abort I'm about to create a new `RemoteError` exception and make `OutOfBandError` extend it. This patch prepares for that. Differential Revision: https://phab.mercurial-scm.org/D10465

#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