Remove reference to byteorder limits
This commit is contained in:
@@ -345,10 +345,8 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
|||||||
|
|
||||||
/// Reads a *non-ZST* scalar.
|
/// Reads a *non-ZST* scalar.
|
||||||
///
|
///
|
||||||
/// ZSTs can't be read for two reasons:
|
/// ZSTs can't be read because in order to obtain a `Pointer`, we need to check
|
||||||
/// * byte-order cannot work with zero-element buffers;
|
/// for ZSTness anyway due to integer pointers being valid for ZSTs.
|
||||||
/// * in order to obtain a `Pointer`, we need to check for ZSTness anyway due to integer
|
|
||||||
/// pointers being valid for ZSTs.
|
|
||||||
///
|
///
|
||||||
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
/// Most likely, you want to call `InterpCx::read_scalar` instead of this method.
|
/// 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> {
|
|||||||
|
|
||||||
/// Writes a *non-ZST* scalar.
|
/// Writes a *non-ZST* scalar.
|
||||||
///
|
///
|
||||||
/// ZSTs can't be read for two reasons:
|
/// ZSTs can't be read because in order to obtain a `Pointer`, we need to check
|
||||||
/// * byte-order cannot work with zero-element buffers;
|
/// for ZSTness anyway due to integer pointers being valid for ZSTs.
|
||||||
/// * in order to obtain a `Pointer`, we need to check for ZSTness anyway due to integer
|
|
||||||
/// pointers being valid for ZSTs.
|
|
||||||
///
|
///
|
||||||
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
/// Most likely, you want to call `InterpCx::write_scalar` instead of this method.
|
/// Most likely, you want to call `InterpCx::write_scalar` instead of this method.
|
||||||
|
|||||||
Reference in New Issue
Block a user