Skip to content

Commit

Permalink
Rollup merge of rust-lang#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
jackh726 authored Feb 2, 2021
2 parents 1b1d551 + 07c4eeb commit 06e2911
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
@@ -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)]

0 comments on commit 06e2911

Please sign in to comment.