@@ -228,7 +228,7 @@ impl<'tcx, Tag: Copy, Extra> Allocation<Tag, Extra> {
228228 // FIXME: Working around https://github.com/rust-lang/rust/issues/56209
229229 where Extra : AllocationExtra < Tag , MemoryExtra >
230230 {
231- self . get_bytes_internal ( cx, ptr, size, true , CheckInAllocMsg :: MemoryAccess )
231+ self . get_bytes_internal ( cx, ptr, size, true , CheckInAllocMsg :: MemoryAccessTest )
232232 }
233233
234234 /// It is the caller's responsibility to handle undefined and pointer bytes.
@@ -243,7 +243,7 @@ impl<'tcx, Tag: Copy, Extra> Allocation<Tag, Extra> {
243243 // FIXME: Working around https://github.com/rust-lang/rust/issues/56209
244244 where Extra : AllocationExtra < Tag , MemoryExtra >
245245 {
246- self . get_bytes_internal ( cx, ptr, size, false , CheckInAllocMsg :: MemoryAccess )
246+ self . get_bytes_internal ( cx, ptr, size, false , CheckInAllocMsg :: MemoryAccessTest )
247247 }
248248
249249 /// Just calling this already marks everything as defined and removes relocations,
@@ -258,7 +258,7 @@ impl<'tcx, Tag: Copy, Extra> Allocation<Tag, Extra> {
258258 where Extra : AllocationExtra < Tag , MemoryExtra >
259259 {
260260 assert_ne ! ( size. bytes( ) , 0 , "0-sized accesses should never even get a `Pointer`" ) ;
261- self . check_bounds ( cx, ptr, size, CheckInAllocMsg :: MemoryAccess ) ?;
261+ self . check_bounds ( cx, ptr, size, CheckInAllocMsg :: MemoryAccessTest ) ?;
262262
263263 self . mark_definedness ( ptr, size, true ) ?;
264264 self . clear_relocations ( cx, ptr, size) ?;
0 commit comments