mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Remove reference to byteorder limits
This commit is contained in:
parent
b97d4131fe
commit
74b4eea64d
@ -345,10 +345,8 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||
|
||||
/// Reads a *non-ZST* scalar.
|
||||
///
|
||||
/// ZSTs can't be read for two reasons:
|
||||
/// * byte-order cannot work with zero-element buffers;
|
||||
/// * in order to obtain a `Pointer`, we need to check for ZSTness anyway due to integer
|
||||
/// pointers being valid for ZSTs.
|
||||
/// ZSTs can't be read because 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.
|
||||
/// 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.
|
||||
///
|
||||
/// ZSTs can't be read for two reasons:
|
||||
/// * byte-order cannot work with zero-element buffers;
|
||||
/// * in order to obtain a `Pointer`, we need to check for ZSTness anyway due to integer
|
||||
/// pointers being valid for ZSTs.
|
||||
/// ZSTs can't be read because 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.
|
||||
/// Most likely, you want to call `InterpCx::write_scalar` instead of this method.
|
||||
|
Loading…
Reference in New Issue
Block a user