Remove reference to byteorder limits
This commit is contained in:
parent
b97d4131fe
commit
74b4eea64d
1 changed files with 4 additions and 8 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue