mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Add back equality check that went missing
This commit is contained in:
parent
a324e46b0b
commit
09ef75c717
2 changed files with 8 additions and 1 deletions
|
@ -43,6 +43,7 @@ where
|
|||
impl<Q> DerivedStorage<Q>
|
||||
where
|
||||
Q: QueryFunction,
|
||||
Q::Value: Eq,
|
||||
{
|
||||
fn slot(&self, key: &Q::Key) -> Arc<Slot<Q>> {
|
||||
if let Some(v) = self.slot_map.read().get(key) {
|
||||
|
@ -64,6 +65,7 @@ where
|
|||
impl<Q> QueryStorageOps<Q> for DerivedStorage<Q>
|
||||
where
|
||||
Q: QueryFunction,
|
||||
Q::Value: Eq,
|
||||
{
|
||||
const CYCLE_STRATEGY: crate::plumbing::CycleRecoveryStrategy = Q::CYCLE_STRATEGY;
|
||||
|
||||
|
@ -139,6 +141,7 @@ where
|
|||
impl<Q> DerivedQueryStorageOps<Q> for DerivedStorage<Q>
|
||||
where
|
||||
Q: QueryFunction,
|
||||
Q::Value: Eq,
|
||||
{
|
||||
fn invalidate<S>(&self, runtime: &mut Runtime, key: &S)
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue