tests/test-check-rust-format.t
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 00:55:52 -0400
changeset 50852 13ad1b2ad3b4
parent 48374 090346b095fb
child 51794 c8188b10cf43
permissions -rw-r--r--
branch: migrate `opts` to native kwargs

#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