diff options
| author | Ralf Jung <post@ralfj.de> | 2023-01-22 20:39:57 -0500 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-01-22 20:39:57 -0500 |
| commit | e0df0429c49bce88e9d81ead810804047ea26631 (patch) | |
| tree | 5c70e7ac6f8df274ef2fee968f9e8b3fecf76c9f /compiler/rustc_data_structures/src/graph/implementation | |
| parent | cb7770736c15488ec816d24ed41928d513f56b4c (diff) | |
| parent | 002dbbeafa39d0375ba45d2e9f7bc2d4ae248c59 (diff) | |
| download | rust-e0df0429c49bce88e9d81ead810804047ea26631.tar.gz rust-e0df0429c49bce88e9d81ead810804047ea26631.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/implementation')
| -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)); |
