@@ -27,7 +27,7 @@ pub(crate) struct QueryVtable<CTX: QueryContext, K, V> {
2727 pub compute : fn ( CTX :: DepContext , K ) -> V ,
2828 pub hash_result : Option < fn ( & mut StableHashingContext < ' _ > , & V ) -> Fingerprint > ,
2929 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 ,
3131 pub try_load_from_disk : fn ( CTX , SerializedDepNodeIndex ) -> Option < V > ,
3232}
3333
@@ -43,8 +43,8 @@ impl<CTX: QueryContext, K, V> QueryVtable<CTX, K, V> {
4343 ( self . compute ) ( tcx, key)
4444 }
4545
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)
4848 }
4949
5050 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> {
8282 fn describe ( tcx : CTX , key : Self :: Key ) -> String ;
8383
8484 #[ inline]
85- fn cache_on_disk ( _: CTX , _: & Self :: Key , _ : Option < & Self :: Value > ) -> bool {
85+ fn cache_on_disk ( _: CTX , _: & Self :: Key ) -> bool {
8686 false
8787 }
8888
0 commit comments