diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-08-16 10:00:25 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-08-16 10:00:25 +0200 |
| commit | 81220c0acef24bd88e960a9b2c2eea3140365864 (patch) | |
| tree | 6599d9575936a57e73792aea001129abcb741dba /compiler/rustc_query_system | |
| parent | c737c62e70cf8627e01e0b3a1088e96bff1b154d (diff) | |
| download | rust-81220c0acef24bd88e960a9b2c2eea3140365864.tar.gz rust-81220c0acef24bd88e960a9b2c2eea3140365864.zip | |
Keep SHARDS fixed instead of a function of `cfg!(parallel_compiler)`
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/graph.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs index 30422ea1102..0d4d13ac20d 100644 --- a/compiler/rustc_query_system/src/dep_graph/graph.rs +++ b/compiler/rustc_query_system/src/dep_graph/graph.rs @@ -1166,7 +1166,7 @@ impl<K: DepKind> CurrentDepGraph<K> { )), new_node_to_index: Sharded::new(|| { FxHashMap::with_capacity_and_hasher( - new_node_count_estimate / sharded::SHARDS, + new_node_count_estimate / sharded::shards(), Default::default(), ) }), |
