Skip to content

Commit ae9b624

Browse files
committed
Rm some unused ord impls
1 parent ee5d8d3 commit ae9b624

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_ast/src/ast.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ bitflags::bitflags! {
19871987
}
19881988
}
19891989

1990-
#[derive(Clone, PartialEq, PartialOrd, Encodable, Decodable, Debug, Hash, HashStable_Generic)]
1990+
#[derive(Clone, PartialEq, Encodable, Decodable, Debug, Hash, HashStable_Generic)]
19911991
pub enum InlineAsmTemplatePiece {
19921992
String(String),
19931993
Placeholder { operand_idx: usize, modifier: Option<char>, span: Span },
@@ -2192,7 +2192,7 @@ pub enum IsAuto {
21922192
No,
21932193
}
21942194

2195-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Encodable, Decodable, Debug)]
2195+
#[derive(Copy, Clone, PartialEq, Eq, Hash, Encodable, Decodable, Debug)]
21962196
#[derive(HashStable_Generic)]
21972197
pub enum Unsafe {
21982198
Yes(Span),

compiler/rustc_middle/src/mir/terminator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl<'a> Iterator for SwitchTargetsIter<'a> {
105105

106106
impl<'a> ExactSizeIterator for SwitchTargetsIter<'a> {}
107107

108-
#[derive(Clone, TyEncodable, TyDecodable, Hash, HashStable, PartialEq, PartialOrd)]
108+
#[derive(Clone, TyEncodable, TyDecodable, Hash, HashStable, PartialEq)]
109109
pub enum TerminatorKind<'tcx> {
110110
/// Block should have one successor in the graph; we jump there.
111111
Goto { target: BasicBlock },

0 commit comments

Comments
 (0)