diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-06 19:09:32 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-09-09 20:24:02 -0500 |
| commit | 0a9d7dbca23bb05fab13c1dc75a87cdb2bf69ff5 (patch) | |
| tree | c97b23b8de5069c19b2413ea079bdd04b9c85244 /compiler/rustc_query_system | |
| parent | 9273782d559a342beb2443018f2f8fc873f53b79 (diff) | |
| download | rust-0a9d7dbca23bb05fab13c1dc75a87cdb2bf69ff5.tar.gz rust-0a9d7dbca23bb05fab13c1dc75a87cdb2bf69ff5.zip | |
Remove unnecessary `TRY_LOAD_FROM_DISK` constant
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/query/config.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_query_system/src/query/config.rs b/compiler/rustc_query_system/src/query/config.rs index 340deb88915..c4549cc9eb4 100644 --- a/compiler/rustc_query_system/src/query/config.rs +++ b/compiler/rustc_query_system/src/query/config.rs @@ -29,8 +29,7 @@ pub struct QueryVTable<CTX: QueryContext, K, V> { pub compute: fn(CTX::DepContext, K) -> V, pub hash_result: Option<fn(&mut StableHashingContext<'_>, &V) -> Fingerprint>, pub handle_cycle_error: HandleCycleError, - // NOTE: this is not quite the same as `Q::TRY_LOAD_FROM_DISK`; it can also be `None` if - // `cache_on_disk` returned false for this key. + // NOTE: this is also `None` if `cache_on_disk()` returns false, not just if it's unsupported by the query pub try_load_from_disk: Option<fn(CTX, SerializedDepNodeIndex) -> Option<V>>, } @@ -48,8 +47,6 @@ impl<CTX: QueryContext, K, V> QueryVTable<CTX, K, V> { } pub trait QueryDescription<CTX: QueryContext>: QueryConfig { - const TRY_LOAD_FROM_DISK: Option<fn(CTX, SerializedDepNodeIndex) -> Option<Self::Value>>; - type Cache: QueryCache<Key = Self::Key, Stored = Self::Stored, Value = Self::Value>; fn describe(tcx: CTX, key: Self::Key) -> String; |
