diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-03-30 16:53:32 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-03-30 21:14:43 +1100 |
| commit | 08dec8969fe526c4419d066dc01344031a0ddc1f (patch) | |
| tree | 9a54f59b5c2ad9ae39003bb3ce7124fe65191916 | |
| parent | 44bfb6538e553a8da386270c7399076b3a2f725d (diff) | |
| download | rust-08dec8969fe526c4419d066dc01344031a0ddc1f.tar.gz rust-08dec8969fe526c4419d066dc01344031a0ddc1f.zip | |
Remove an out-of-date comment on `QueryCache::lookup`.
| -rw-r--r-- | compiler/rustc_query_system/src/query/caches.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/caches.rs b/compiler/rustc_query_system/src/query/caches.rs index 5f554a54dea..d3efc22a194 100644 --- a/compiler/rustc_query_system/src/query/caches.rs +++ b/compiler/rustc_query_system/src/query/caches.rs @@ -21,9 +21,6 @@ pub trait QueryCache: Sized { type Value: Copy + Debug; /// Checks if the query is already computed and in the cache. - /// It returns the shard index and a lock guard to the shard, - /// which will be used if the query is not in the cache and we need - /// to compute it. fn lookup(&self, key: &Self::Key) -> Option<(Self::Value, DepNodeIndex)>; fn complete(&self, key: Self::Key, value: Self::Value, index: DepNodeIndex); |
