We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a1b0d3 commit 4976dddCopy full SHA for 4976ddd
clippy_lints/src/eq_op.rs
@@ -77,7 +77,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
77
BinOpKind::Shr => (cx.tcx.lang_items().shr_trait(), false),
78
BinOpKind::Ne | BinOpKind::Eq => (cx.tcx.lang_items().eq_trait(), true),
79
BinOpKind::Lt | BinOpKind::Le | BinOpKind::Ge | BinOpKind::Gt => {
80
- (cx.tcx.lang_items().ord_trait(), true)
+ (cx.tcx.lang_items().partial_ord_trait(), true)
81
},
82
};
83
if let Some(trait_id) = trait_id {
0 commit comments