|
1 | | -use rustc_data_structures::graph::scc::Sccs; |
| 1 | +use crate::type_check::Locations; |
2 | 2 | use rustc_index::{IndexSlice, IndexVec}; |
3 | 3 | use rustc_middle::mir::ConstraintCategory; |
4 | 4 | use rustc_middle::ty::{RegionVid, TyCtxt, VarianceDiagInfo}; |
5 | 5 | use rustc_span::Span; |
6 | 6 | use std::fmt; |
7 | 7 | use std::ops::Index; |
8 | 8 |
|
9 | | -use crate::type_check::Locations; |
10 | | - |
11 | 9 | pub(crate) mod graph; |
12 | 10 |
|
13 | 11 | /// A set of NLL region constraints. These include "outlives" |
@@ -45,18 +43,6 @@ impl<'tcx> OutlivesConstraintSet<'tcx> { |
45 | 43 | graph::ConstraintGraph::new(graph::Reverse, self, num_region_vars) |
46 | 44 | } |
47 | 45 |
|
48 | | - /// Computes cycles (SCCs) in the graph of regions. In particular, |
49 | | - /// find all regions R1, R2 such that R1: R2 and R2: R1 and group |
50 | | - /// them into an SCC, and find the relationships between SCCs. |
51 | | - pub(crate) fn compute_sccs( |
52 | | - &self, |
53 | | - constraint_graph: &graph::NormalConstraintGraph, |
54 | | - static_region: RegionVid, |
55 | | - ) -> Sccs<RegionVid, ConstraintSccIndex> { |
56 | | - let region_graph = &constraint_graph.region_graph(self, static_region); |
57 | | - Sccs::new(region_graph) |
58 | | - } |
59 | | - |
60 | 46 | pub(crate) fn outlives( |
61 | 47 | &self, |
62 | 48 | ) -> &IndexSlice<OutlivesConstraintIndex, OutlivesConstraint<'tcx>> { |
|
0 commit comments