remove some now-unnecessary parameters from check_bytes
This commit is contained in:
parent
da13935ecc
commit
2e52fe01cf
3 changed files with 7 additions and 31 deletions
|
@ -893,11 +893,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
|
|||
// We also accept uninit, for consistency with the slow path.
|
||||
let alloc = self.ecx.get_ptr_alloc(mplace.ptr, size, mplace.align)?.expect("we already excluded size 0");
|
||||
|
||||
match alloc.check_bytes(
|
||||
alloc_range(Size::ZERO, size),
|
||||
/*allow_uninit*/ false,
|
||||
/*allow_ptr*/ false,
|
||||
) {
|
||||
match alloc.check_bytes(alloc_range(Size::ZERO, size)) {
|
||||
// In the happy case, we needn't check anything else.
|
||||
Ok(()) => {}
|
||||
// Some error happened, try to provide a more detailed description.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue