mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Use compiletest 0.3
This commit is contained in:
parent
088555c4ea
commit
5c0b99820b
3 changed files with 4 additions and 10 deletions
|
@ -42,7 +42,7 @@ clippy_lints = { version = "0.0.169", path = "clippy_lints" }
|
|||
cargo_metadata = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
compiletest_rs = "0.2.7"
|
||||
compiletest_rs = "0.3"
|
||||
duct = "0.8.2"
|
||||
lazy_static = "0.2"
|
||||
regex = "0.2"
|
||||
|
|
|
@ -22,7 +22,9 @@ fn run_mode(dir: &'static str, mode: &'static str) {
|
|||
}
|
||||
|
||||
config.mode = cfg_mode;
|
||||
config.build_base = PathBuf::from("target/debug/test_build_base");
|
||||
config.build_base = PathBuf::from("target/debug/test_build_base")
|
||||
.canonicalize()
|
||||
.unwrap();
|
||||
config.src_base = PathBuf::from(format!("tests/{}", dir));
|
||||
config.rustc_path = clippy_driver_path();
|
||||
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
error: function is never used: `temporary_cstring`
|
||||
--> $DIR/cstring.rs:4:1
|
||||
|
|
||||
4 | fn temporary_cstring() {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `-D dead-code` implied by `-D warnings`
|
||||
|
||||
error: you are getting the inner pointer of a temporary `CString`
|
||||
--> $DIR/cstring.rs:7:5
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue