Skip to content

Commit 880e300

Browse files
committed
mod items need to be marked with cfg(test) not test.
1 parent c14aa7e commit 880e300

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libcore/task/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ fn test_run_basic() {
797797
po.recv();
798798
}
799799
800-
#[test]
800+
#[cfg(test)]
801801
struct Wrapper {
802802
mut f: Option<Chan<()>>
803803
}

src/libstd/cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn test_fuzzy_eq_eps() {
6464
assert!(!(&1.5f).fuzzy_eq_eps(&0.9, &0.5));
6565
}
6666

67-
#[test]
67+
#[cfg(test)]
6868
mod test_complex{
6969
use cmp::*;
7070

0 commit comments

Comments
 (0)