]> git.lizzy.rs Git - rust.git/commitdiff
mod items need to be marked with `cfg(test)` not `test`.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 30 Apr 2013 12:36:18 +0000 (14:36 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 2 May 2013 06:55:08 +0000 (08:55 +0200)
src/libcore/task/mod.rs
src/libstd/cmp.rs

index 2a4817727f4cfdf5ace03d220ea8a20fc026c131..0e97c101dc651c701ddbcd2d3a816965cdfdd4d3 100644 (file)
@@ -797,7 +797,7 @@ fn test_run_basic() {
     po.recv();
 }
 
-#[test]
+#[cfg(test)]
 struct Wrapper {
     mut f: Option<Chan<()>>
 }
index 5d7f64a7c8fa0427a2f82d5ce3bf98f6da689f7c..ea3793c13748358caabd93b41649447029430553 100644 (file)
@@ -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::*;