about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph/scc/mod.rs
diff options
context:
space:
mode:
authorb-naber <bn263@gmx.de>2022-11-09 21:21:36 +0100
committerb-naber <b_naber@gmx.de>2023-02-19 22:12:12 +0000
commite2bf960fe1c011e75cf0d6a06d3f955444d11043 (patch)
treec72c41cd950b697e5b67b70e70cc1c3ea0bcbf0d /compiler/rustc_data_structures/src/graph/scc/mod.rs
parent960ebaf899cfceddf7edaf936f460491dcbf4733 (diff)
downloadrust-e2bf960fe1c011e75cf0d6a06d3f955444d11043.tar.gz
rust-e2bf960fe1c011e75cf0d6a06d3f955444d11043.zip
sccs info
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/scc/mod.rs')
-rw-r--r--compiler/rustc_data_structures/src/graph/scc/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs
index c8e66eb672c..e2fe5285aad 100644
--- a/compiler/rustc_data_structures/src/graph/scc/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs
@@ -21,21 +21,21 @@ mod tests;
 pub struct Sccs<N: Idx, S: Idx> {
     /// For each node, what is the SCC index of the SCC to which it
     /// belongs.
-    scc_indices: IndexVec<N, S>,
+    pub scc_indices: IndexVec<N, S>,
 
     /// Data about each SCC.
-    scc_data: SccData<S>,
+    pub scc_data: SccData<S>,
 }
 
-struct SccData<S: Idx> {
+pub struct SccData<S: Idx> {
     /// For each SCC, the range of `all_successors` where its
     /// successors can be found.
-    ranges: IndexVec<S, Range<usize>>,
+    pub ranges: IndexVec<S, Range<usize>>,
 
     /// Contains the successors for all the Sccs, concatenated. The
     /// range of indices corresponding to a given SCC is found in its
     /// SccData.
-    all_successors: Vec<S>,
+    pub all_successors: Vec<S>,
 }
 
 impl<N: Idx, S: Idx + Ord> Sccs<N, S> {