mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
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:
@@ -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
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user