about summary refs log tree commit diff
path: root/compiler/rustc_query_system
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-08-16 10:00:25 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-08-16 10:00:25 +0200
commit81220c0acef24bd88e960a9b2c2eea3140365864 (patch)
tree6599d9575936a57e73792aea001129abcb741dba /compiler/rustc_query_system
parentc737c62e70cf8627e01e0b3a1088e96bff1b154d (diff)
downloadrust-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.rs2
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(),
                 )
             }),