diff options
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/scc/tests.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/scc/tests.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/tests.rs b/compiler/rustc_data_structures/src/graph/scc/tests.rs index e388e7b6680..8f04baf51f3 100644 --- a/compiler/rustc_data_structures/src/graph/scc/tests.rs +++ b/compiler/rustc_data_structures/src/graph/scc/tests.rs @@ -8,7 +8,7 @@ struct MaxReached(usize); struct Maxes(IndexVec<usize, MaxReached>, fn(usize) -> usize); type UsizeSccs = Sccs<usize, usize>; -impl Annotations<usize, usize, MaxReached> for Maxes { +impl Annotations<usize> for Maxes { fn new(&self, element: usize) -> MaxReached { MaxReached(self.1(element)) } @@ -17,6 +17,9 @@ impl Annotations<usize, usize, MaxReached> for Maxes { let i = self.0.push(annotation); assert!(i == scc); } + + type Ann = MaxReached; + type SccIdx = usize; } impl Maxes { @@ -57,7 +60,7 @@ impl MinMaxes { } } -impl Annotations<usize, usize, MinMaxIn> for MinMaxes { +impl Annotations<usize> for MinMaxes { fn new(&self, element: usize) -> MinMaxIn { self.1(element) } @@ -66,6 +69,9 @@ impl Annotations<usize, usize, MinMaxIn> for MinMaxes { let i = self.0.push(annotation); assert!(i == scc); } + + type Ann = MinMaxIn; + type SccIdx = usize; } impl Annotation for MinMaxIn { |
