Skip to content

Commit e72754d

Browse files
authored
Rollup merge of #87880 - pierwill:graph-duplicate-trait-bound, r=LeSeulArtichaut
Remove duplicate trait bounds in `rustc_data_structures::graph` Remove duplicate trait bounds in `rustc_data_structures::graph`.
2 parents 9d21b5a + 3e123e4 commit e72754d

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)