@@ -28,7 +28,7 @@ pub struct ConstAlloc<'tcx> {
28
28
29
29
/// Represents a constant value in Rust. `Scalar` and `Slice` are optimizations for
30
30
/// array length computations, enum discriminants and the pattern matching logic.
31
- #[ derive( Copy , Clone , Debug , Eq , PartialEq , PartialOrd , Ord , TyEncodable , TyDecodable , Hash ) ]
31
+ #[ derive( Copy , Clone , Debug , Eq , PartialEq , TyEncodable , TyDecodable , Hash ) ]
32
32
#[ derive( HashStable , Lift ) ]
33
33
pub enum ConstValue < ' tcx > {
34
34
/// Used only for types with `layout::abi::Scalar` ABI.
@@ -110,7 +110,7 @@ impl<'tcx> ConstValue<'tcx> {
110
110
///
111
111
/// These variants would be private if there was a convenient way to achieve that in Rust.
112
112
/// Do *not* match on a `Scalar`! Use the various `to_*` methods instead.
113
- #[ derive( Clone , Copy , Eq , PartialEq , Ord , PartialOrd , TyEncodable , TyDecodable , Hash ) ]
113
+ #[ derive( Clone , Copy , Eq , PartialEq , TyEncodable , TyDecodable , Hash ) ]
114
114
#[ derive( HashStable ) ]
115
115
pub enum Scalar < Prov = AllocId > {
116
116
/// The raw bytes of a simple value.
0 commit comments