diff --git a/Cargo.toml b/Cargo.toml index b025ad2b9..506d52468 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ harness = false test = false [dev-dependencies] -rustc-test = "0.1" +rustc-test = "0.2" rustc-serialize = "0.3" serde_json = ">=0.6.1, <0.9" diff --git a/idna/Cargo.toml b/idna/Cargo.toml index 8a1924a3b..6f1d5fd65 100644 --- a/idna/Cargo.toml +++ b/idna/Cargo.toml @@ -18,7 +18,7 @@ harness = false name = "unit" [dev-dependencies] -rustc-test = "0.1" +rustc-test = "0.2" rustc-serialize = "0.3" [dependencies] diff --git a/idna/tests/tests.rs b/idna/tests/tests.rs index 0a4ad03ee..8ca218595 100644 --- a/idna/tests/tests.rs +++ b/idna/tests/tests.rs @@ -10,11 +10,7 @@ fn main() { { let mut add_test = |name, run| { tests.push(test::TestDescAndFn { - desc: test::TestDesc { - name: test::DynTestName(name), - ignore: false, - should_panic: test::ShouldPanic::No, - }, + desc: test::TestDesc::new(test::DynTestName(name)), testfn: run, }) }; diff --git a/tests/data.rs b/tests/data.rs index a116df8cb..12c3f5d0e 100644 --- a/tests/data.rs +++ b/tests/data.rs @@ -188,11 +188,7 @@ fn main() { { let mut add_one = |name: String, run: test::TestFn| { tests.push(test::TestDescAndFn { - desc: test::TestDesc { - name: test::DynTestName(name), - ignore: false, - should_panic: test::ShouldPanic::No, - }, + desc: test::TestDesc::new(test::DynTestName(name)), testfn: run, }) };