Exclude ice-3891.rs from rustfmt run

Because the code triggers a rustc parse error which makes rustfmt fail.
This commit is contained in:
Philipp Hansch 2019-04-09 20:53:38 +02:00
parent 0307ff020c
commit 0eb7596fdc
No known key found for this signature in database
GPG Key ID: 82AA61CAA11397E6
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ rustup override set nightly
# avoid loop spam and allow cmds with exit status != 0
set +ex
for file in `find tests | grep "\.rs$"` ; do
# Excluding `ice-3891.rs` because the code triggers a rustc parse error which
# makes rustfmt fail.
for file in `find tests -not -path "tests/ui/crashes/ice-3891.rs" | grep "\.rs$"` ; do
rustfmt ${file} --check
if [ $? -ne 0 ]; then
echo "${file} needs reformatting!"