Expand Miri's BorTag GC to a Provenance GC

This commit is contained in:
Ben Kimock
2023-11-17 20:33:44 -05:00
parent 82b804c744
commit 0d0a41789f
27 changed files with 395 additions and 296 deletions

View File

@@ -107,6 +107,14 @@ impl<K: Hash + Eq, V> interpret::AllocMap<K, V> for FxIndexMap<K, V> {
FxIndexMap::contains_key(self, k)
}
#[inline(always)]
fn contains_key_ref<Q: ?Sized + Hash + Eq>(&self, k: &Q) -> bool
where
K: Borrow<Q>,
{
FxIndexMap::contains_key(self, k)
}
#[inline(always)]
fn insert(&mut self, k: K, v: V) -> Option<V> {
FxIndexMap::insert(self, k, v)