@@ -228,7 +228,7 @@ impl<'tcx, Tag: Copy, Extra> Allocation<Tag, Extra> {
228
228
// FIXME: Working around https://github.com/rust-lang/rust/issues/56209
229
229
where Extra : AllocationExtra < Tag , MemoryExtra >
230
230
{
231
- self . get_bytes_internal ( cx, ptr, size, true , CheckInAllocMsg :: MemoryAccess )
231
+ self . get_bytes_internal ( cx, ptr, size, true , CheckInAllocMsg :: MemoryAccessTest )
232
232
}
233
233
234
234
/// It is the caller's responsibility to handle undefined and pointer bytes.
@@ -243,7 +243,7 @@ impl<'tcx, Tag: Copy, Extra> Allocation<Tag, Extra> {
243
243
// FIXME: Working around https://github.com/rust-lang/rust/issues/56209
244
244
where Extra : AllocationExtra < Tag , MemoryExtra >
245
245
{
246
- self . get_bytes_internal ( cx, ptr, size, false , CheckInAllocMsg :: MemoryAccess )
246
+ self . get_bytes_internal ( cx, ptr, size, false , CheckInAllocMsg :: MemoryAccessTest )
247
247
}
248
248
249
249
/// Just calling this already marks everything as defined and removes relocations,
@@ -258,7 +258,7 @@ impl<'tcx, Tag: Copy, Extra> Allocation<Tag, Extra> {
258
258
where Extra : AllocationExtra < Tag , MemoryExtra >
259
259
{
260
260
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 ) ?;
262
262
263
263
self . mark_definedness ( ptr, size, true ) ?;
264
264
self . clear_relocations ( cx, ptr, size) ?;
0 commit comments