There was an error while loading. Please reload this page.
ControlFlowGraph
1 parent f514493 commit 3124fa9Copy full SHA for 3124fa9
1 file changed
compiler/rustc_data_structures/src/graph/mod.rs
@@ -44,10 +44,8 @@ pub trait Predecessors: DirectedGraph {
44
fnpredecessors(&self,node:Self::Node) -> Self::Predecessors<'_>;
45
}
46
47
-pubtraitControlFlowGraph:DirectedGraph + StartNode + Predecessors + Successors{
48
-// convenient trait
49
-}
50
-
+/// Alias for [`DirectedGraph`] + [`StartNode`] + [`Predecessors`] + [`Successors`].
+pubtraitControlFlowGraph:DirectedGraph + StartNode + Predecessors + Successors{}
51
impl<T>ControlFlowGraphforTwhereT:DirectedGraph + StartNode + Predecessors + Successors{}
52
53
/// Returns `true` if the graph has a cycle that is reachable from the start node.
0 commit comments