From ff1cd206ef67640fd48aa03af0a8f3c1aa264de0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sat, 1 Jul 2017 13:47:09 +0200 Subject: [PATCH] Update rustc-test to 0.2, fix #371 --- Cargo.toml | 2 +- idna/tests/tests.rs | 6 +----- tests/data.rs | 6 +----- 3 files changed, 3 insertions(+), 11 deletions(-) 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/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, }) };