diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-01 23:57:23 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-02 01:59:01 +0300 |
| commit | e118eb6c7970385fbcdd688d03975f65d88e642e (patch) | |
| tree | 52f7b93573ee2e7c0963f66f4907fc44e6c15443 /src/librustc_data_structures/graph | |
| parent | ca0ef0fcf66b0fe913c19a3a00729af4494866e6 (diff) | |
librustc_data_structures: Unconfigure tests during normal build
Diffstat (limited to 'src/librustc_data_structures/graph')
| -rw-r--r-- | src/librustc_data_structures/graph/dominators/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/dominators/tests.rs (renamed from src/librustc_data_structures/graph/dominators/test.rs) | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/iterate/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/iterate/tests.rs (renamed from src/librustc_data_structures/graph/iterate/test.rs) | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/scc/mod.rs | 3 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/scc/tests.rs (renamed from src/librustc_data_structures/graph/scc/test.rs) | 4 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/tests.rs (renamed from src/librustc_data_structures/graph/test.rs) | 0 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/vec_graph/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/graph/vec_graph/tests.rs (renamed from src/librustc_data_structures/graph/vec_graph/test.rs) | 0 |
10 files changed, 9 insertions, 10 deletions
diff --git a/src/librustc_data_structures/graph/dominators/mod.rs b/src/librustc_data_structures/graph/dominators/mod.rs index 93a2a261c6f..04ddca7896a 100644 --- a/src/librustc_data_structures/graph/dominators/mod.rs +++ b/src/librustc_data_structures/graph/dominators/mod.rs @@ -9,7 +9,7 @@ use super::iterate::reverse_post_order; use super::ControlFlowGraph; #[cfg(test)] -mod test; +mod tests; pub fn dominators<G: ControlFlowGraph>(graph: &G) -> Dominators<G::Node> { let start_node = graph.start_node(); diff --git a/src/librustc_data_structures/graph/dominators/test.rs b/src/librustc_data_structures/graph/dominators/tests.rs index 5d17ce9e909..70408fb6df1 100644 --- a/src/librustc_data_structures/graph/dominators/test.rs +++ b/src/librustc_data_structures/graph/dominators/tests.rs @@ -1,4 +1,4 @@ -use super::super::test::TestGraph; +use super::super::tests::TestGraph; use super::*; diff --git a/src/librustc_data_structures/graph/iterate/mod.rs b/src/librustc_data_structures/graph/iterate/mod.rs index 5612778ce07..c4185fc7cd9 100644 --- a/src/librustc_data_structures/graph/iterate/mod.rs +++ b/src/librustc_data_structures/graph/iterate/mod.rs @@ -3,7 +3,7 @@ use super::{DirectedGraph, WithNumNodes, WithSuccessors}; use crate::bit_set::BitSet; #[cfg(test)] -mod test; +mod tests; pub fn post_order_from<G: DirectedGraph + WithSuccessors + WithNumNodes>( graph: &G, diff --git a/src/librustc_data_structures/graph/iterate/test.rs b/src/librustc_data_structures/graph/iterate/tests.rs index 62e48aaec53..6c7cfd6d8a7 100644 --- a/src/librustc_data_structures/graph/iterate/test.rs +++ b/src/librustc_data_structures/graph/iterate/tests.rs @@ -1,4 +1,4 @@ -use super::super::test::TestGraph; +use super::super::tests::TestGraph; use super::*; diff --git a/src/librustc_data_structures/graph/mod.rs b/src/librustc_data_structures/graph/mod.rs index 749709521e8..662581ca1e4 100644 --- a/src/librustc_data_structures/graph/mod.rs +++ b/src/librustc_data_structures/graph/mod.rs @@ -8,7 +8,7 @@ pub mod scc; pub mod vec_graph; #[cfg(test)] -mod test; +mod tests; pub trait DirectedGraph { type Node: Idx; diff --git a/src/librustc_data_structures/graph/scc/mod.rs b/src/librustc_data_structures/graph/scc/mod.rs index 78554cda77b..23a1a2a90a4 100644 --- a/src/librustc_data_structures/graph/scc/mod.rs +++ b/src/librustc_data_structures/graph/scc/mod.rs @@ -9,7 +9,8 @@ use crate::graph::vec_graph::VecGraph; use crate::indexed_vec::{Idx, IndexVec}; use std::ops::Range; -mod test; +#[cfg(test)] +mod tests; /// Strongly connected components (SCC) of a graph. The type `N` is /// the index type for the graph nodes and `S` is the index type for diff --git a/src/librustc_data_structures/graph/scc/test.rs b/src/librustc_data_structures/graph/scc/tests.rs index da3a1ceefe9..6da3ac0ecb8 100644 --- a/src/librustc_data_structures/graph/scc/test.rs +++ b/src/librustc_data_structures/graph/scc/tests.rs @@ -1,6 +1,4 @@ -#![cfg(test)] - -use crate::graph::test::TestGraph; +use crate::graph::tests::TestGraph; use super::*; #[test] diff --git a/src/librustc_data_structures/graph/test.rs b/src/librustc_data_structures/graph/tests.rs index bc142144e93..bc142144e93 100644 --- a/src/librustc_data_structures/graph/test.rs +++ b/src/librustc_data_structures/graph/tests.rs diff --git a/src/librustc_data_structures/graph/vec_graph/mod.rs b/src/librustc_data_structures/graph/vec_graph/mod.rs index 6fb1bb42d2c..19c61f2680d 100644 --- a/src/librustc_data_structures/graph/vec_graph/mod.rs +++ b/src/librustc_data_structures/graph/vec_graph/mod.rs @@ -2,7 +2,7 @@ use crate::indexed_vec::{Idx, IndexVec}; use crate::graph::{DirectedGraph, WithNumNodes, WithNumEdges, WithSuccessors, GraphSuccessors}; #[cfg(test)] -mod test; +mod tests; pub struct VecGraph<N: Idx> { /// Maps from a given node to an index where the set of successors diff --git a/src/librustc_data_structures/graph/vec_graph/test.rs b/src/librustc_data_structures/graph/vec_graph/tests.rs index 97a9bd2ad0b..97a9bd2ad0b 100644 --- a/src/librustc_data_structures/graph/vec_graph/test.rs +++ b/src/librustc_data_structures/graph/vec_graph/tests.rs |
