tests/test-check-rust-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 13 Feb 2023 22:53:54 +0100
changeset 50054 44528f4a4d53
parent 48374 090346b095fb
permissions -rw-r--r--
dirstate: explicitly write the dirstate after `keyword` "overwrite" I am working on making the dirstate write patterns more predictable. This patch is part of a small series of similar patches that adds a explicit dirstate write in a handful of location where the dirstate is updated "a bit in a strange way". With this explicit write, we are no longer relying on implicite write of the dirstate on `wlock` release. This make the world a better place.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43837
e8a3bbffdc7d tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     1
#require rustfmt test-repo
e8a3bbffdc7d tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     2
e8a3bbffdc7d tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     3
  $ . "$TESTDIR/helpers-testrepo.sh"
e8a3bbffdc7d tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     4
e8a3bbffdc7d tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     5
  $ cd "$TESTDIR"/..
48374
090346b095fb hghave: update rustfmt criterion
Raphaël Gomès <rgomes@octobus.net>
parents: 48297
diff changeset
     6
090346b095fb hghave: update rustfmt criterion
Raphaël Gomès <rgomes@octobus.net>
parents: 48297
diff changeset
     7
Warning: Keep this in sync with hghave.py
48297
9ebc10ad4a04 rust-format: update rustfmt version
Raphaël Gomès <rgomes@octobus.net>
parents: 46002
diff changeset
     8
  $ RUSTFMT=$(rustup which --toolchain nightly-2021-11-02 rustfmt)
43837
e8a3bbffdc7d tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
     9
  $ for f in `testrepohg files 'glob:**/*.rs'` ; do
44844
f44a7d8660ea test-check-rust-format: specify --edition=2018
Yuya Nishihara <yuya@tcha.org>
parents: 43837
diff changeset
    10
  >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
43837
e8a3bbffdc7d tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
    11
  > done