Make closure_saved_names_of_captured_variables a query.
This commit is contained in:
parent
18a6d911ca
commit
7d5b2e4926
13 changed files with 71 additions and 39 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::sip128::SipHasher128;
|
||||
use rustc_index::bit_set::{self, BitSet};
|
||||
use rustc_index::{Idx, IndexVec};
|
||||
use rustc_index::{Idx, IndexSlice, IndexVec};
|
||||
use smallvec::SmallVec;
|
||||
use std::fmt;
|
||||
use std::hash::{BuildHasher, Hash, Hasher};
|
||||
|
@ -597,6 +597,18 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<I: Idx, T, CTX> HashStable<CTX> for IndexSlice<I, T>
|
||||
where
|
||||
T: HashStable<CTX>,
|
||||
{
|
||||
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {
|
||||
self.len().hash_stable(ctx, hasher);
|
||||
for v in &self.raw {
|
||||
v.hash_stable(ctx, hasher);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<I: Idx, T, CTX> HashStable<CTX> for IndexVec<I, T>
|
||||
where
|
||||
T: HashStable<CTX>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue