File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,18 @@ unset CARGO_MANIFEST_DIR
24
24
# FIXME: How to match the clippy invocation in compile-test.rs?
25
25
./target/debug/clippy-driver -Dwarnings -Aunused -Zui-testing --emit metadata --crate-type bin tests/ui/double_neg.rs 2> double_neg.stderr && exit 1
26
26
sed -e " s,tests/ui,\$ DIR," -e " /= help/d" double_neg.stderr > normalized.stderr
27
- diff normalized.stderr tests/ui/double_neg.stderr
27
+ diff -u normalized.stderr tests/ui/double_neg.stderr
28
28
29
29
30
30
# make sure "clippy-driver --rustc --arg" and "rustc --arg" behave the same
31
31
SYSROOT=` rustc --print sysroot`
32
- diff <( LD_LIBRARY_PATH=${SYSROOT} /lib ./target/debug/clippy-driver --rustc --version --verbose) <( rustc --version --verbose)
32
+ diff -u <( LD_LIBRARY_PATH=${SYSROOT} /lib ./target/debug/clippy-driver --rustc --version --verbose) <( rustc --version --verbose)
33
33
34
34
35
35
echo " fn main() {}" > target/driver_test.rs
36
36
# we can't run 2 rustcs on the same file at the same time
37
37
CLIPPY=` LD_LIBRARY_PATH=${SYSROOT} /lib ./target/debug/clippy-driver ./target/driver_test.rs --rustc`
38
38
RUSTC=` rustc ./target/driver_test.rs`
39
- diff <( $CLIPPY ) <( $RUSTC )
39
+ diff -u <( $CLIPPY ) <( $RUSTC )
40
40
41
41
# TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR
You can’t perform that action at this time.
0 commit comments