@@ -345,10 +345,8 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
345
345
346
346
/// Reads a *non-ZST* scalar.
347
347
///
348
- /// ZSTs can't be read for two reasons:
349
- /// * byte-order cannot work with zero-element buffers;
350
- /// * in order to obtain a `Pointer`, we need to check for ZSTness anyway due to integer
351
- /// pointers being valid for ZSTs.
348
+ /// ZSTs can't be read because in order to obtain a `Pointer`, we need to check
349
+ /// for ZSTness anyway due to integer pointers being valid for ZSTs.
352
350
///
353
351
/// It is the caller's responsibility to check bounds and alignment beforehand.
354
352
/// Most likely, you want to call `InterpCx::read_scalar` instead of this method.
@@ -397,10 +395,8 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
397
395
398
396
/// Writes a *non-ZST* scalar.
399
397
///
400
- /// ZSTs can't be read for two reasons:
401
- /// * byte-order cannot work with zero-element buffers;
402
- /// * in order to obtain a `Pointer`, we need to check for ZSTness anyway due to integer
403
- /// pointers being valid for ZSTs.
398
+ /// ZSTs can't be read because in order to obtain a `Pointer`, we need to check
399
+ /// for ZSTness anyway due to integer pointers being valid for ZSTs.
404
400
///
405
401
/// It is the caller's responsibility to check bounds and alignment beforehand.
406
402
/// Most likely, you want to call `InterpCx::write_scalar` instead of this method.
0 commit comments