diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-08-11 04:18:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 04:18:44 +0900 |
| commit | e72754dc594fd083a3ebdf9661eaaac643f5d3dc (patch) | |
| tree | 586c71d68eb1852d14676786e9f2e51216ac2c87 | |
| parent | 9d21b5a39dc3eb5006054167929b846aea142300 (diff) | |
| parent | 3e123e415014d700b83f3b373423507683105910 (diff) | |
| download | rust-e72754dc594fd083a3ebdf9661eaaac643f5d3dc.tar.gz rust-e72754dc594fd083a3ebdf9661eaaac643f5d3dc.zip | |
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`.
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/mod.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_data_structures/src/graph/mod.rs b/compiler/rustc_data_structures/src/graph/mod.rs index e0903e43241..dff22855629 100644 --- a/compiler/rustc_data_structures/src/graph/mod.rs +++ b/compiler/rustc_data_structures/src/graph/mod.rs @@ -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 { } |
