Skip to content

Commit

Permalink
Rollup merge of #87880 - pierwill:graph-duplicate-trait-bound, r=LeSe…
Browse files Browse the repository at this point in the history
…ulArtichaut

Remove duplicate trait bounds in `rustc_data_structures::graph`

Remove duplicate trait bounds in `rustc_data_structures::graph`.
  • Loading branch information
JohnTitor authored Aug 10, 2021
2 parents 9d21b5a + 3e123e4 commit e72754d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions compiler/rustc_data_structures/src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,13 @@ pub trait WithStartNode: DirectedGraph {
}

pub trait ControlFlowGraph:
DirectedGraph + WithStartNode + WithPredecessors + WithStartNode + WithSuccessors + WithNumNodes
DirectedGraph + WithStartNode + WithPredecessors + WithSuccessors + WithNumNodes
{
// convenient trait
}

impl<T> ControlFlowGraph for T where
T: DirectedGraph
+ WithStartNode
+ WithPredecessors
+ WithStartNode
+ WithSuccessors
+ WithNumNodes
T: DirectedGraph + WithStartNode + WithPredecessors + WithSuccessors + WithNumNodes
{
}

Expand Down

0 comments on commit e72754d

Please sign in to comment.