]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #50793 - jrlusby:master, r=petrochenkov
authorkennytm <kennytm@gmail.com>
Wed, 16 May 2018 19:07:35 +0000 (03:07 +0800)
committerkennytm <kennytm@gmail.com>
Wed, 16 May 2018 21:18:19 +0000 (05:18 +0800)
commit63ea42fd3c82c629a0e5a8b981bdaeb30cdc0253
tree02b249287151f4f5e67c47c1a67bab41c40f3862
parent0306630925bf4ab112bf1778bea0b27919b1cc8f
parent6ed200aaeabb7ab2e12c6fd2a52627bd3f457a95
Rollup merge of #50793 - jrlusby:master, r=petrochenkov

tidy: Add a check for empty UI test files

Check for empty `.stderr` and `.stdout` files in UI test directories.
Empty files could  still pass testing for `compile-pass` tests with no output
so they can get into the repo accidentally, but they are not necessary and can
be removed.

This is very much an in progress pull request. I'm having an issue with rustfmt. It wanted to reformat the entire file for almost every file by default. And when I run tidy it just errors out because it catches the empty files that are already in the repo.

My next step is goin got be to remove those empty file and see if running tidy again will actually reformat things outside of the context of `cargo fmt`

Fixes https://github.com/rust-lang/rust/issues/50785
src/librustc_passes/rvalue_promotion.rs
src/librustc_typeck/check/mod.rs