add test and remove debug print

This commit is contained in:
Matthias Krüger 2020-06-02 14:50:44 +02:00
parent 840786a939
commit 88ab10400b
2 changed files with 5 additions and 1 deletions

5
.github/driver.sh vendored
View file

@ -26,4 +26,9 @@ 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)
# TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR

View file

@ -355,7 +355,6 @@ pub fn main() {
args.extend(vec!["--sysroot".into(), sys_root]);
};
println!("args: {:?}", args);
return rustc_driver::run_compiler(&args, &mut DefaultCallbacks, None, None);
}