tests/test-check-rust-format.t
author Yuya Nishihara <yuya@tcha.org>
Tue, 01 Dec 2020 19:23:23 +0900
changeset 46044 9ee791f3278f
parent 46002 d42809b6b10f
child 48297 9ebc10ad4a04
permissions -rw-r--r--
scmutil: extract function that builds revset expr to select bookmark branch This is needed to process "log -B" option properly. "log" options have to be translated to a revset expression, not to an evaluated set.

#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