Skip to content

Commit 094af97

Browse files
authored
Update value.rs
1 parent 7589d3a commit 094af97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/mir/interpret/value.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ pub struct RawConst<'tcx> {
1717
pub ty: Ty<'tcx>,
1818
}
1919

20-
/// Represents a constant value in Rust. `Scalar` and `Slice` are optimizations that
21-
/// match the `LocalState` optimizations for easy conversions between `Operand` and `ConstValue`.
20+
/// Represents a constant value in Rust. `Scalar` and `Slice` are optimizations for
21+
/// array length computations, enum discriminants and the pattern matching logic.
2222
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord,
2323
RustcEncodable, RustcDecodable, Hash, HashStable)]
2424
pub enum ConstValue<'tcx> {

0 commit comments

Comments
 (0)