Avoid implementing Debug for QueryConfig
This commit is contained in:
parent
3fd7c4a17d
commit
3b26d71e04
4 changed files with 14 additions and 5 deletions
|
@ -14,7 +14,7 @@ pub type HashResult<V> = Option<fn(&mut StableHashingContext<'_>, &V) -> Fingerp
|
|||
|
||||
pub type TryLoadFromDisk<Qcx, V> = Option<fn(Qcx, SerializedDepNodeIndex) -> Option<V>>;
|
||||
|
||||
pub trait QueryConfig<Qcx: QueryContext>: Copy + Debug {
|
||||
pub trait QueryConfig<Qcx: QueryContext>: Copy {
|
||||
fn name(self) -> &'static str;
|
||||
|
||||
// `Key` and `Value` are `Copy` instead of `Clone` to ensure copying them stays cheap,
|
||||
|
|
|
@ -468,9 +468,9 @@ where
|
|||
|
||||
dep_graph.with_task(
|
||||
dep_node,
|
||||
qcx,
|
||||
(key, query),
|
||||
|qcx, (key, query)| query.compute(qcx, key),
|
||||
(qcx, query),
|
||||
key,
|
||||
|(qcx, query), key| query.compute(qcx, key),
|
||||
query.hash_result(),
|
||||
)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue