Skip to content

Commit a482177

Browse files
committed
Remove parameter from functions that don't need it
1 parent 0d9fba1 commit a482177

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/rustc_query_system/src/query/plumbing.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ where
166166
{
167167
/// Completes the query by updating the query cache with the `result`,
168168
/// signals the waiter and forgets the JobOwner, so it won't poison the query
169-
fn complete<C, Q>(self, q: Q, cache: &C, result: C::Value, dep_node_index: DepNodeIndex)
169+
fn complete<C, Q>(self, cache: &C, result: C::Value, dep_node_index: DepNodeIndex)
170170
where
171171
C: QueryCache<Key = K>,
172-
Q: QueryConfig<Qcx>,
173172
{
174173
let key = self.key;
175174
let state = self.state;
@@ -183,7 +182,7 @@ where
183182

184183
let job = {
185184
let mut lock = state.active.lock_shard_by_value(&key);
186-
lock.remove(&key).unwrap().expect_job(q.name())
185+
lock.remove(&key).unwrap().expect_job(self.query_name)
187186
};
188187

189188
job.signal_complete();
@@ -443,7 +442,7 @@ where
443442
}
444443
}
445444
}
446-
job_owner.complete(cache, q, result, dep_node_index);
445+
job_owner.complete(cache, result, dep_node_index);
447446

448447
(result, Some(dep_node_index))
449448
}

0 commit comments

Comments
 (0)