changeset 44732:f44a7d8660ea

test-check-rust-format: specify --edition=2018 rustfmt doesn't read Cargo.toml unless it's executed by cargo. https://github.com/rust-lang/rustfmt#rusts-editions
author Yuya Nishihara <yuya@tcha.org>
date Fri, 17 Apr 2020 19:35:18 +0900
parents 59ad165f6cdb
children c6d31e659a28
files tests/test-check-rust-format.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-rust-format.t	Thu Apr 16 22:30:11 2020 +0900
+++ b/tests/test-check-rust-format.t	Fri Apr 17 19:35:18 2020 +0900
@@ -5,5 +5,5 @@
   $ cd "$TESTDIR"/..
   $ RUSTFMT=$(rustup which --toolchain nightly rustfmt)
   $ for f in `testrepohg files 'glob:**/*.rs'` ; do
-  >   $RUSTFMT --check --unstable-features --color=never $f
+  >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
   > done