mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
Dogfood
This commit is contained in:
parent
03a0b18a85
commit
38b2215060
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
|
|||
BiMul => cx.tcx.lang_items.mul_trait(),
|
||||
BiDiv => cx.tcx.lang_items.div_trait(),
|
||||
BiRem => cx.tcx.lang_items.rem_trait(),
|
||||
BiAnd => None,
|
||||
BiAnd |
|
||||
BiOr => None,
|
||||
BiBitXor => cx.tcx.lang_items.bitxor_trait(),
|
||||
BiBitAnd => cx.tcx.lang_items.bitand_trait(),
|
||||
|
@ -81,6 +81,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp {
|
|||
BiGt => cx.tcx.lang_items.ord_trait(),
|
||||
};
|
||||
if let Some(trait_id) = trait_id {
|
||||
#[allow(match_same_arms)]
|
||||
match (&left.node, &right.node) {
|
||||
// do not suggest to dereference literals
|
||||
(&ExprLit(..), _) |
|
||||
|
|
Loading…
Reference in a new issue