Skip to content

Commit c8233a4

Browse files
ProjectionElem and UnOp/BinOp dont need to be PartialOrd/Ord
1 parent 473ae00 commit c8233a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: compiler/rustc_middle/src/mir/syntax.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ pub struct Place<'tcx> {
10941094
pub projection: &'tcx List<PlaceElem<'tcx>>,
10951095
}
10961096

1097-
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
1097+
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
10981098
#[derive(TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable)]
10991099
pub enum ProjectionElem<V, T> {
11001100
Deref,
@@ -1468,7 +1468,7 @@ pub enum NullOp<'tcx> {
14681468
UbChecks,
14691469
}
14701470

1471-
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
1471+
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
14721472
#[derive(HashStable, TyEncodable, TyDecodable, TypeFoldable, TypeVisitable)]
14731473
pub enum UnOp {
14741474
/// The `!` operator for logical inversion
@@ -1486,7 +1486,7 @@ pub enum UnOp {
14861486
PtrMetadata,
14871487
}
14881488

1489-
#[derive(Copy, Clone, Debug, PartialEq, PartialOrd, Ord, Eq, Hash)]
1489+
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
14901490
#[derive(TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable)]
14911491
pub enum BinOp {
14921492
/// The `+` operator (addition)

0 commit comments

Comments
 (0)