Skip to content

Commit 3e123e4

Browse files
committed
Remove duplicate trait bounds in rustc_data_structures::graph
1 parent 4e886d6 commit 3e123e4

File tree

1 file changed

+2
-7
lines changed
  • compiler/rustc_data_structures/src/graph

1 file changed

+2
-7
lines changed

compiler/rustc_data_structures/src/graph/mod.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,13 @@ pub trait WithStartNode: DirectedGraph {
6060
}
6161

6262
pub trait ControlFlowGraph:
63-
DirectedGraph + WithStartNode + WithPredecessors + WithStartNode + WithSuccessors + WithNumNodes
63+
DirectedGraph + WithStartNode + WithPredecessors + WithSuccessors + WithNumNodes
6464
{
6565
// convenient trait
6666
}
6767

6868
impl<T> ControlFlowGraph for T where
69-
T: DirectedGraph
70-
+ WithStartNode
71-
+ WithPredecessors
72-
+ WithStartNode
73-
+ WithSuccessors
74-
+ WithNumNodes
69+
T: DirectedGraph + WithStartNode + WithPredecessors + WithSuccessors + WithNumNodes
7570
{
7671
}
7772

0 commit comments

Comments
 (0)