Remove duplicate trait bounds in rustc_data_structures::graph
This commit is contained in:
parent
4e886d6876
commit
3e123e4150
1 changed files with 2 additions and 7 deletions
|
@ -60,18 +60,13 @@ pub trait WithStartNode: DirectedGraph {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait ControlFlowGraph:
|
pub trait ControlFlowGraph:
|
||||||
DirectedGraph + WithStartNode + WithPredecessors + WithStartNode + WithSuccessors + WithNumNodes
|
DirectedGraph + WithStartNode + WithPredecessors + WithSuccessors + WithNumNodes
|
||||||
{
|
{
|
||||||
// convenient trait
|
// convenient trait
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> ControlFlowGraph for T where
|
impl<T> ControlFlowGraph for T where
|
||||||
T: DirectedGraph
|
T: DirectedGraph + WithStartNode + WithPredecessors + WithSuccessors + WithNumNodes
|
||||||
+ WithStartNode
|
|
||||||
+ WithPredecessors
|
|
||||||
+ WithStartNode
|
|
||||||
+ WithSuccessors
|
|
||||||
+ WithNumNodes
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue