diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2021-02-02 16:01:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-02 16:01:49 -0500 |
| commit | 70d16d506c0033d6dcc2a8399f77ccf2bb6996e2 (patch) | |
| tree | 3df9ee585a157f8eac85b2cce6743e57b4633ed5 | |
| parent | 7edb3ad39b378b37bb7218863788df37c2b0c237 (diff) | |
| parent | 07c4eeb83659a46dff7fb71ebe21f1a839e427e8 (diff) | |
| download | rust-70d16d506c0033d6dcc2a8399f77ccf2bb6996e2.tar.gz rust-70d16d506c0033d6dcc2a8399f77ccf2bb6996e2.zip | |
Rollup merge of #81665 - jacob-hughes:mir_doc_fix, r=estebank
Fix out of date `Scalar` documentation Scalars can represent integers up to `u128`, but the docs state otherwise.
| -rw-r--r-- | compiler/rustc_middle/src/mir/interpret/value.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/value.rs b/compiler/rustc_middle/src/mir/interpret/value.rs index f288ad8d1d4..4bb39fe4a52 100644 --- a/compiler/rustc_middle/src/mir/interpret/value.rs +++ b/compiler/rustc_middle/src/mir/interpret/value.rs @@ -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)] |
