diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-02 01:58:40 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-02 02:40:01 +0300 |
| commit | 62ec2cb7acb1b16d0abd8a2cf40da545a13d29f3 (patch) | |
| tree | 7692fc594e177ae978e2b3951600e8a0edc41a65 /src/libtest | |
| parent | 3d0d6ee271a34d2329235b9a04cf4a421d9026cd (diff) | |
| download | rust-62ec2cb7acb1b16d0abd8a2cf40da545a13d29f3.tar.gz rust-62ec2cb7acb1b16d0abd8a2cf40da545a13d29f3.zip | |
Remove some more `cfg(test)`s
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 22 | ||||
| -rw-r--r-- | src/libtest/tests.rs | 21 |
2 files changed, 21 insertions, 22 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index b36c5be4c07..ef66c4df99d 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -380,28 +380,6 @@ pub struct TestOpts { pub options: Options, } -impl TestOpts { - #[cfg(test)] - fn new() -> TestOpts { - TestOpts { - list: false, - filter: None, - filter_exact: false, - exclude_should_panic: false, - run_ignored: RunIgnored::No, - run_tests: false, - bench_benchmarks: false, - logfile: None, - nocapture: false, - color: AutoColor, - format: OutputFormat::Pretty, - test_threads: None, - skip: vec![], - options: Options::new(), - } - } -} - /// Result of parsing the options. pub type OptRes = Result<TestOpts, String>; diff --git a/src/libtest/tests.rs b/src/libtest/tests.rs index 05b38f17e2b..f574743e4b6 100644 --- a/src/libtest/tests.rs +++ b/src/libtest/tests.rs @@ -7,6 +7,27 @@ use crate::test::{ }; use std::sync::mpsc::channel; +impl TestOpts { + fn new() -> TestOpts { + TestOpts { + list: false, + filter: None, + filter_exact: false, + exclude_should_panic: false, + run_ignored: RunIgnored::No, + run_tests: false, + bench_benchmarks: false, + logfile: None, + nocapture: false, + color: AutoColor, + format: OutputFormat::Pretty, + test_threads: None, + skip: vec![], + options: Options::new(), + } + } +} + fn one_ignored_one_unignored_test() -> Vec<TestDescAndFn> { vec