1
Fork 0

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`.
This commit is contained in:
Yuki Okushi 2021-08-11 04:18:44 +09:00 committed by GitHub
commit e72754dc59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
{
}