diff --git a/clippy_lints/src/eq_op.rs b/clippy_lints/src/eq_op.rs index a7dd98300061..803fb48436a3 100644 --- a/clippy_lints/src/eq_op.rs +++ b/clippy_lints/src/eq_op.rs @@ -77,7 +77,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp { BinOpKind::Shr => (cx.tcx.lang_items().shr_trait(), false), BinOpKind::Ne | BinOpKind::Eq => (cx.tcx.lang_items().eq_trait(), true), BinOpKind::Lt | BinOpKind::Le | BinOpKind::Ge | BinOpKind::Gt => { - (cx.tcx.lang_items().ord_trait(), true) + (cx.tcx.lang_items().partial_ord_trait(), true) }, }; if let Some(trait_id) = trait_id {