Skip to content

Commit 1c32cf3

Browse files
committed
clippy-driver: fix test and add --rustc to --help output
1 parent 6cbc4ad commit 1c32cf3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/driver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ SYSROOT=`rustc --print sysroot`
3232
diff <(LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver --rustc --version --verbose) <(rustc --version --verbose)
3333

3434
# we can't run 2 rustcs on the same file at the same time
35-
CLIPPY=`LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver tests/driver/main.rs`
36-
RUSTC=`rustc tests/driver/main.rs`
35+
CLIPPY=`LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver ./tests/driver/main.rs --rustc`
36+
RUSTC=`rustc ./tests/driver/main.rs`
3737
diff <($CLIPPY) <($RUSTC)
3838

3939
# TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR

src/driver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ Usage:
207207
208208
Common options:
209209
-h, --help Print this message
210+
--rustc Pass all args to rustc
210211
-V, --version Print version info and exit
211212
212213
Other options are the same as `cargo check`.

0 commit comments

Comments
 (0)