diff options
| author | pierwill <pierwill@users.noreply.github.com> | 2021-08-09 08:52:04 -0500 |
|---|---|---|
| committer | pierwill <pierwill@users.noreply.github.com> | 2021-08-09 08:52:04 -0500 |
| commit | 3e123e415014d700b83f3b373423507683105910 (patch) | |
| tree | 1c2b1d3603f58b7a324e915932d41b73cabb7300 /compiler/rustc_data_structures/src/graph | |
| parent | 4e886d68766719a7fc1714c52a0e7e81929e8b8e (diff) | |
| download | rust-3e123e415014d700b83f3b373423507683105910.tar.gz rust-3e123e415014d700b83f3b373423507683105910.zip | |
Remove duplicate trait bounds in `rustc_data_structures::graph`
Diffstat (limited to 'compiler/rustc_data_structures/src/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 { } |
