diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-13 14:17:32 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-13 14:17:32 -0400 |
| commit | c8233a4c6f4f0cd4e39b11170060b1e5e8a54141 (patch) | |
| tree | 093ac2feebf4c40f59575949527a6556158b0932 | |
| parent | 473ae00839d3ab36ee03b088c202cea1da042e73 (diff) | |
| download | rust-c8233a4c6f4f0cd4e39b11170060b1e5e8a54141.tar.gz rust-c8233a4c6f4f0cd4e39b11170060b1e5e8a54141.zip | |
ProjectionElem and UnOp/BinOp dont need to be PartialOrd/Ord
| -rw-r--r-- | compiler/rustc_middle/src/mir/syntax.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs index 22a4b688c51..f5590aa2762 100644 --- a/compiler/rustc_middle/src/mir/syntax.rs +++ b/compiler/rustc_middle/src/mir/syntax.rs @@ -1094,7 +1094,7 @@ pub struct Place<'tcx> { pub projection: &'tcx List<PlaceElem<'tcx>>, } -#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] #[derive(TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable)] pub enum ProjectionElem<V, T> { Deref, @@ -1468,7 +1468,7 @@ pub enum NullOp<'tcx> { UbChecks, } -#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] #[derive(HashStable, TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)] pub enum UnOp { /// The `!` operator for logical inversion @@ -1486,7 +1486,7 @@ pub enum UnOp { PtrMetadata, } -#[derive(Copy, Clone, Debug, PartialEq, PartialOrd, Ord, Eq, Hash)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] #[derive(TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable)] pub enum BinOp { /// The `+` operator (addition) |
