diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-05-06 12:54:03 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-05-06 14:35:06 +1000 |
| commit | 9e7fb67838ce06e418d078c4d04b0ff578bd1f43 (patch) | |
| tree | 3fc145c155e13deb0ba3767d890aef0997a23d18 /compiler/rustc_query_system | |
| parent | 4a0969e06dbeaaa43914d2d00b2e843d49aa3886 (diff) | |
| download | rust-9e7fb67838ce06e418d078c4d04b0ff578bd1f43.tar.gz rust-9e7fb67838ce06e418d078c4d04b0ff578bd1f43.zip | |
Rename `graph::implementation::Graph` to `LinkedGraph`
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/query.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/query.rs b/compiler/rustc_query_system/src/dep_graph/query.rs index 624f4e4578e..724a01327ab 100644 --- a/compiler/rustc_query_system/src/dep_graph/query.rs +++ b/compiler/rustc_query_system/src/dep_graph/query.rs @@ -1,11 +1,11 @@ use rustc_data_structures::fx::FxHashMap; -use rustc_data_structures::graph::implementation::{Direction, Graph, INCOMING, NodeIndex}; +use rustc_data_structures::graph::linked_graph::{Direction, INCOMING, LinkedGraph, NodeIndex}; use rustc_index::IndexVec; use super::{DepNode, DepNodeIndex}; pub struct DepGraphQuery { - pub graph: Graph<DepNode, ()>, + pub graph: LinkedGraph<DepNode, ()>, pub indices: FxHashMap<DepNode, NodeIndex>, pub dep_index_to_index: IndexVec<DepNodeIndex, Option<NodeIndex>>, } @@ -15,7 +15,7 @@ impl DepGraphQuery { let node_count = prev_node_count + prev_node_count / 4; let edge_count = 6 * node_count; - let graph = Graph::with_capacity(node_count, edge_count); + let graph = LinkedGraph::with_capacity(node_count, edge_count); let indices = FxHashMap::default(); let dep_index_to_index = IndexVec::new(); |
