Skip to content

Commit

Permalink
Rollup merge of #81665 - jacob-hughes:mir_doc_fix, r=estebank
Browse files Browse the repository at this point in the history
Fix out of date `Scalar` documentation

Scalars can represent integers up to `u128`, but the docs state otherwise.
  • Loading branch information
m-ou-se committed Feb 2, 2021
2 parents 0513708 + 07c4eeb commit ddf8dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/mir/interpret/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<'tcx> ConstValue<'tcx> {
}

/// A `Scalar` represents an immediate, primitive value existing outside of a
/// `memory::Allocation`. It is in many ways like a small chunk of a `Allocation`, up to 8 bytes in
/// `memory::Allocation`. It is in many ways like a small chunk of a `Allocation`, up to 16 bytes in
/// size. Like a range of bytes in an `Allocation`, a `Scalar` can either represent the raw bytes
/// of a simple value or a pointer into another `Allocation`
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, TyEncodable, TyDecodable, Hash)]
Expand Down

0 comments on commit ddf8dc7

Please sign in to comment.