diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-11-17 20:33:44 -0500 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-11-19 13:29:02 -0500 |
| commit | 0d0a41789f86c2fc62382831e5256809b3bbe19e (patch) | |
| tree | 409911a27fe6c4b0b81f48b590e7c43c2fdb0763 /compiler/rustc_const_eval/src/const_eval | |
| parent | 82b804c74433a233914f604bb0ba385719605e5e (diff) | |
Expand Miri's BorTag GC to a Provenance GC
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/const_eval/machine.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs index 4b447229c5f..739dbcc5aba 100644 --- a/compiler/rustc_const_eval/src/const_eval/machine.rs +++ b/compiler/rustc_const_eval/src/const_eval/machine.rs @@ -108,6 +108,14 @@ impl<K: Hash + Eq, V> interpret::AllocMap<K, V> for FxIndexMap<K, V> { } #[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) } |
