diff options
| author | bors <bors@rust-lang.org> | 2020-06-24 19:33:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-06-24 19:33:02 +0000 |
| commit | 67100f61e62a86f2bf9e38552ee138e231eddc74 (patch) | |
| tree | e4a5fe83e7355ea412b3a7f1383a45860f1021a5 /src/tools/clippy/.github/driver.sh | |
| parent | d8ed1b03c202d77248eb0d335062f46026fc29c4 (diff) | |
| parent | a2c0499b39b19563acaaffb9c54179b4208ec146 (diff) | |
Auto merge of #73660 - flip1995:clippyup, r=nikomatsakis
Update Clippy
Diffstat (limited to 'src/tools/clippy/.github/driver.sh')
| -rw-r--r-- | src/tools/clippy/.github/driver.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/clippy/.github/driver.sh b/src/tools/clippy/.github/driver.sh index a2e87f5eb37..2c17c4203ae 100644 --- a/src/tools/clippy/.github/driver.sh +++ b/src/tools/clippy/.github/driver.sh @@ -26,4 +26,16 @@ unset CARGO_MANIFEST_DIR sed -e "s,tests/ui,\$DIR," -e "/= help/d" cstring.stderr > normalized.stderr diff normalized.stderr tests/ui/cstring.stderr + +# make sure "clippy-driver --rustc --arg" and "rustc --arg" behave the same +SYSROOT=`rustc --print sysroot` +diff <(LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver --rustc --version --verbose) <(rustc --version --verbose) + + +echo "fn main() {}" > target/driver_test.rs +# we can't run 2 rustcs on the same file at the same time +CLIPPY=`LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver ./target/driver_test.rs --rustc` +RUSTC=`rustc ./target/driver_test.rs` +diff <($CLIPPY) <($RUSTC) + # TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR |
