Use RPITIT for Successors
and Predecessors
traits
Now with RPITIT instead of GAT!
This commit is contained in:
parent
e8d2221e3b
commit
435db9b9bd
8 changed files with 14 additions and 46 deletions
|
@ -223,9 +223,7 @@ impl<'s, 'tcx, D: ConstraintGraphDirection> graph::DirectedGraph for RegionGraph
|
|||
}
|
||||
|
||||
impl<'s, 'tcx, D: ConstraintGraphDirection> graph::Successors for RegionGraph<'s, 'tcx, D> {
|
||||
type Successors<'g> = Successors<'s, 'tcx, D> where Self: 'g;
|
||||
|
||||
fn successors(&self, node: Self::Node) -> Self::Successors<'_> {
|
||||
fn successors(&self, node: Self::Node) -> impl Iterator<Item = Self::Node> {
|
||||
self.outgoing_regions(node)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue