Skip to content

Commit ddf8dc7

Browse files
authored
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.
2 parents 0513708 + 07c4eeb commit ddf8dc7

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/mir/interpret

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/interpret/value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'tcx> ConstValue<'tcx> {
9696
}
9797

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

0 commit comments

Comments
 (0)