diff --git a/.travis.yml b/.travis.yml index d0c614aaae9..a0893d9c1c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ sudo: false script: - python util/update_lints.py -c - cargo build --features debugging + - rm -rf target/ Cargo.lock - cargo test --features debugging # only test regex_macros if it compiles diff --git a/Cargo.toml b/Cargo.toml index 98f57cc08ca..0bf83ab872a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.51" +version = "0.0.52" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -18,16 +18,16 @@ name = "clippy" plugin = true [dependencies] -regex-syntax = "0.2.2" +regex-syntax = "0.3.0" regex_macros = { version = "0.1.28", optional = true } semver = "0.2.1" toml = "0.1" unicode-normalization = "0.1" [dev-dependencies] -compiletest_rs = "0.0.11" +compiletest_rs = "0.1.0" lazy_static = "0.1.15" -regex = "0.1.47" +regex = "0.1.56" rustc-serialize = "0.3" [features] diff --git a/tests/dogfood.rs b/tests/dogfood.rs index 61e37c28c94..b5ae813ae51 100644 --- a/tests/dogfood.rs +++ b/tests/dogfood.rs @@ -1,7 +1,11 @@ -extern crate compiletest_rs as compiletest; +#![feature(test)] + +extern crate compiletest_rs as compiletest; +extern crate test; -use std::path::Path; use std::env::var; +use std::path::PathBuf; +use test::TestPaths; #[test] fn dogfood() { @@ -20,5 +24,10 @@ fn dogfood() { config.mode = cfg_mode; - compiletest::runtest::run(config, &Path::new("src/lib.rs")); + let paths = TestPaths { + base: PathBuf::new(), + file: PathBuf::from("src/lib.rs"), + relative_dir: PathBuf::new(), + }; + compiletest::runtest::run(config, &paths); }