From 0d0a41789f86c2fc62382831e5256809b3bbe19e Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Fri, 17 Nov 2023 20:33:44 -0500 Subject: Expand Miri's BorTag GC to a Provenance GC --- compiler/rustc_const_eval/src/const_eval/machine.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compiler/rustc_const_eval/src/const_eval') 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 @@ -107,6 +107,14 @@ impl interpret::AllocMap for FxIndexMap { FxIndexMap::contains_key(self, k) } + #[inline(always)] + fn contains_key_ref(&self, k: &Q) -> bool + where + K: Borrow, + { + FxIndexMap::contains_key(self, k) + } + #[inline(always)] fn insert(&mut self, k: K, v: V) -> Option { FxIndexMap::insert(self, k, v) -- cgit 1.4.1-3-g733a5