about summary refs log tree commit diff
path: root/src/libcore/slice.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-29 23:36:43 +0000
committerbors <bors@rust-lang.org>2014-06-29 23:36:43 +0000
commitbb5695b95c288c442dbe528f7e1c1b08f79f033d (patch)
tree0269cdf468e55163d90491d9ba0b18bf76e718c7 /src/libcore/slice.rs
parenta490871a6c3fae9017a6402fcf911d05dcf1d013 (diff)
parent1ed646eaf7d09455a086afa11bcd83a7d2a6b0f4 (diff)
downloadrust-bb5695b95c288c442dbe528f7e1c1b08f79f033d.tar.gz
rust-bb5695b95c288c442dbe528f7e1c1b08f79f033d.zip
auto merge of #15245 : sfackler/rust/coretest, r=alexcrichton
Libcore's test infrastructure is complicated by the fact that many lang
items are defined in the crate. The current approach (realcore/realstd
imports) is hacky and hard to work with (tests inside of core::cmp
haven't been run for months!).

Moving tests to a separate crate does mean that they can only test the
public API of libcore, but I don't feel that that is too much of an
issue. The only tests that I had to get rid of were some checking the
various numeric formatters, but those are also exercised through normal
format! calls in other tests.
Diffstat (limited to 'src/libcore/slice.rs')
-rw-r--r--src/libcore/slice.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index fea7986eee5..63406334103 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -246,7 +246,6 @@ impl<'a, T> RandomAccessIterator<&'a [T]> for Chunks<'a, T> {
 
 // Equality
 
-#[cfg(not(test))]
 #[allow(missing_doc)]
 pub mod traits {
     use super::*;
@@ -298,9 +297,6 @@ pub mod traits {
     }
 }
 
-#[cfg(test)]
-pub mod traits {}
-
 /// Any vector that can be represented as a slice.
 pub trait Vector<T> {
     /// Work with `self` as a slice.