tests/test-check-rust-format.t
author Augie Fackler <augie@google.com>
Wed, 02 Mar 2022 10:32:36 -0500
changeset 48839 7b068abe4aa2
parent 48742 090346b095fb
child 51736 c8188b10cf43
permissions -rw-r--r--
rust: jettison Python 2 support Differential Revision: https://phab.mercurial-scm.org/D12283

#require rustfmt test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..

Warning: Keep this in sync with hghave.py
  $ RUSTFMT=$(rustup which --toolchain nightly-2021-11-02 rustfmt)
  $ for f in `testrepohg files 'glob:**/*.rs'` ; do
  >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
  > done