Skip to content

Commit 6d35505

Browse files
committed
Rollup merge of #52033 - zachrwolfe:outdated_value_comment, r=oli-obk
[Gardening] Update outdated comments: ByVal -> Scalar ByVal enum cases in mir::interpret::value were renamed to Scalar a while ago but comments still refer to the old names.
2 parents b87b22e + ecaa7bc commit 6d35505

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/mir/interpret/value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use hir::def_id::DefId;
77

88
use super::{EvalResult, Pointer, PointerArithmetic, Allocation};
99

10-
/// Represents a constant value in Rust. ByVal and ScalarPair are optimizations which
10+
/// Represents a constant value in Rust. Scalar and ScalarPair are optimizations which
1111
/// matches Value's optimizations for easy conversions between these two types
1212
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord, RustcEncodable, RustcDecodable, Hash)]
1313
pub enum ConstValue<'tcx> {
@@ -72,7 +72,7 @@ impl<'tcx> ConstValue<'tcx> {
7272
/// A `Value` represents a single self-contained Rust value.
7373
///
7474
/// A `Value` can either refer to a block of memory inside an allocation (`ByRef`) or to a primitve
75-
/// value held directly, outside of any allocation (`ByVal`). For `ByRef`-values, we remember
75+
/// value held directly, outside of any allocation (`Scalar`). For `ByRef`-values, we remember
7676
/// whether the pointer is supposed to be aligned or not (also see Place).
7777
///
7878
/// For optimization of a few very common cases, there is also a representation for a pair of

0 commit comments

Comments
 (0)