diff options
| author | Hal Gentz <zegentzy@protonmail.com> | 2019-09-13 20:37:38 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-13 20:37:38 -0600 |
| commit | 094af9743bd8a2b7cc2ae3b81b8110de9a93ea95 (patch) | |
| tree | 5fd73718a015ec904f45a0d5b5b2adcdf84f0784 /src | |
| parent | 7589d3a400dfaa13027232ef0a5352fd20680193 (diff) | |
Update value.rs
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/mir/interpret/value.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs index 811c872968a..11e7db5804c 100644 --- a/src/librustc/mir/interpret/value.rs +++ b/src/librustc/mir/interpret/value.rs @@ -17,8 +17,8 @@ pub struct RawConst<'tcx> { pub ty: Ty<'tcx>, } -/// Represents a constant value in Rust. `Scalar` and `Slice` are optimizations that -/// match the `LocalState` optimizations for easy conversions between `Operand` and `ConstValue`. +/// Represents a constant value in Rust. `Scalar` and `Slice` are optimizations for +/// array length computations, enum discriminants and the pattern matching logic. #[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord, RustcEncodable, RustcDecodable, Hash, HashStable)] pub enum ConstValue<'tcx> { |
