@@ -27,7 +27,7 @@ pub(crate) struct QueryVtable<CTX: QueryContext, K, V> {
27
27
pub compute : fn ( CTX :: DepContext , K ) -> V ,
28
28
pub hash_result : Option < fn ( & mut StableHashingContext < ' _ > , & V ) -> Fingerprint > ,
29
29
pub handle_cycle_error : fn ( CTX , DiagnosticBuilder < ' _ > ) -> V ,
30
- pub cache_on_disk : fn ( CTX , & K , Option < & V > ) -> bool ,
30
+ pub cache_on_disk : fn ( CTX , & K ) -> bool ,
31
31
pub try_load_from_disk : fn ( CTX , SerializedDepNodeIndex ) -> Option < V > ,
32
32
}
33
33
@@ -43,8 +43,8 @@ impl<CTX: QueryContext, K, V> QueryVtable<CTX, K, V> {
43
43
( self . compute ) ( tcx, key)
44
44
}
45
45
46
- pub ( crate ) fn cache_on_disk ( & self , tcx : CTX , key : & K , value : Option < & V > ) -> bool {
47
- ( self . cache_on_disk ) ( tcx, key, value )
46
+ pub ( crate ) fn cache_on_disk ( & self , tcx : CTX , key : & K ) -> bool {
47
+ ( self . cache_on_disk ) ( tcx, key)
48
48
}
49
49
50
50
pub ( crate ) fn try_load_from_disk ( & self , tcx : CTX , index : SerializedDepNodeIndex ) -> Option < V > {
@@ -82,7 +82,7 @@ pub trait QueryDescription<CTX: QueryContext>: QueryAccessors<CTX> {
82
82
fn describe ( tcx : CTX , key : Self :: Key ) -> String ;
83
83
84
84
#[ inline]
85
- fn cache_on_disk ( _: CTX , _: & Self :: Key , _ : Option < & Self :: Value > ) -> bool {
85
+ fn cache_on_disk ( _: CTX , _: & Self :: Key ) -> bool {
86
86
false
87
87
}
88
88
0 commit comments