about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJake Hughes <jh@jakehughes.uk>2021-02-02 16:15:32 +0000
committerJake Hughes <jh@jakehughes.uk>2021-02-02 16:15:32 +0000
commit07c4eeb83659a46dff7fb71ebe21f1a839e427e8 (patch)
treeb9c750c2c3083654912fa80edf615a6304c67443
parente0d9f793990d20f8f640097e28556886ba5362f0 (diff)
downloadrust-07c4eeb83659a46dff7fb71ebe21f1a839e427e8.tar.gz
rust-07c4eeb83659a46dff7fb71ebe21f1a839e427e8.zip
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.rs2
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)]