Skip to content

Commit 4976ddd

Browse files
CAD97flip1995
authored andcommitted
Fire clippy::op_ref on PartialOrd but !Ord types
1 parent 3a1b0d3 commit 4976ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/eq_op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
7777
BinOpKind::Shr => (cx.tcx.lang_items().shr_trait(), false),
7878
BinOpKind::Ne | BinOpKind::Eq => (cx.tcx.lang_items().eq_trait(), true),
7979
BinOpKind::Lt | BinOpKind::Le | BinOpKind::Ge | BinOpKind::Gt => {
80-
(cx.tcx.lang_items().ord_trait(), true)
80+
(cx.tcx.lang_items().partial_ord_trait(), true)
8181
},
8282
};
8383
if let Some(trait_id) = trait_id {

0 commit comments

Comments
 (0)