diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-23 17:12:31 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-17 07:48:19 +0000 |
| commit | fc6cda860345b734f7c5e39b7801e3fa4cbaaba0 (patch) | |
| tree | 62629c5e7bab716877000ee70450c7ea5f13ab9d /compiler/rustc_data_structures/src/graph | |
| parent | 3dca58e249703a9e6558f5683b904fcb71d9d879 (diff) | |
| download | rust-fc6cda860345b734f7c5e39b7801e3fa4cbaaba0.tar.gz rust-fc6cda860345b734f7c5e39b7801e3fa4cbaaba0.zip | |
`rustc_data_structures`: remove `ref` patterns and other artifacts of the past
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/implementation/tests.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/graph/implementation/tests.rs b/compiler/rustc_data_structures/src/graph/implementation/tests.rs index e4e4d0d44ba..dc1ce1747bf 100644 --- a/compiler/rustc_data_structures/src/graph/implementation/tests.rs +++ b/compiler/rustc_data_structures/src/graph/implementation/tests.rs @@ -70,8 +70,8 @@ fn test_adjacent_edges<N: PartialEq + Debug, E: PartialEq + Debug>( "counter={:?} expected={:?} edge_index={:?} edge={:?}", counter, expected_incoming[counter], edge_index, edge ); - match expected_incoming[counter] { - (ref e, ref n) => { + match &expected_incoming[counter] { + (e, n) => { assert!(e == &edge.data); assert!(n == graph.node_data(edge.source())); assert!(start_index == edge.target); @@ -88,8 +88,8 @@ fn test_adjacent_edges<N: PartialEq + Debug, E: PartialEq + Debug>( "counter={:?} expected={:?} edge_index={:?} edge={:?}", counter, expected_outgoing[counter], edge_index, edge ); - match expected_outgoing[counter] { - (ref e, ref n) => { + match &expected_outgoing[counter] { + (e, n) => { assert!(e == &edge.data); assert!(start_index == edge.source); assert!(n == graph.node_data(edge.target)); |
