From: Felix S. Klock II Date: Tue, 30 Apr 2013 12:36:18 +0000 (+0200) Subject: mod items need to be marked with `cfg(test)` not `test`. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=880e300ed7a35de9ecff489d7fc0d24f2e975109;p=rust.git mod items need to be marked with `cfg(test)` not `test`. --- diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 2a4817727f4..0e97c101dc6 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -797,7 +797,7 @@ fn test_run_basic() { po.recv(); } -#[test] +#[cfg(test)] struct Wrapper { mut f: Option> } diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs index 5d7f64a7c8f..ea3793c1374 100644 --- a/src/libstd/cmp.rs +++ b/src/libstd/cmp.rs @@ -64,7 +64,7 @@ fn test_fuzzy_eq_eps() { assert!(!(&1.5f).fuzzy_eq_eps(&0.9, &0.5)); } -#[test] +#[cfg(test)] mod test_complex{ use cmp::*;