Skip to content

Commit 88ab104

Browse files
committed
add test and remove debug print
1 parent 840786a commit 88ab104

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/driver.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ unset CARGO_MANIFEST_DIR
2626
sed -e "s,tests/ui,\$DIR," -e "/= help/d" cstring.stderr > normalized.stderr
2727
diff normalized.stderr tests/ui/cstring.stderr
2828

29+
30+
# make sure "clippy-driver --rustc --arg" and "rustc --arg" behave the same
31+
SYSROOT=`rustc --print sysroot`
32+
diff <(LD_LIBRARY_PATH=${SYSROOT}/lib ./target/debug/clippy-driver --rustc --version --verbose) <(rustc --version --verbose)
33+
2934
# TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR

src/driver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ pub fn main() {
355355
args.extend(vec!["--sysroot".into(), sys_root]);
356356
};
357357

358-
println!("args: {:?}", args);
359358
return rustc_driver::run_compiler(&args, &mut DefaultCallbacks, None, None);
360359
}
361360

0 commit comments

Comments
 (0)