tests/test-check-rust-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 13 Jan 2021 18:29:19 +0100
changeset 46267 b9b37418ac7e
parent 45987 d42809b6b10f
child 48297 9ebc10ad4a04
permissions -rw-r--r--
ui: add a "config_default" method This allow code to access the expected value for a config. This is useful in the context of dynamic default value, and short term it will be useful to write dynamically "correct" code. Differential Revision: https://phab.mercurial-scm.org/D9759

#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