File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,6 @@ impl<'tcx> LateLintPass<'tcx> for LintPass {
229
229
if let ExprKind :: Binary ( ref binop, a, b) = expr. kind;
230
230
if binop. node == BinOpKind :: And || binop. node == BinOpKind :: Or ;
231
231
if let Some ( sugg) = Sugg :: hir_opt( cx, a) ;
232
- // Do not emit if clippy::ref_pattern is not allowed to avoid having two lints for the same issue.
233
- if is_lint_allowed( cx, REF_PATTERN , expr. hir_id) ;
234
232
then {
235
233
span_lint_hir_and_then(
236
234
cx,
@@ -263,10 +261,6 @@ impl<'tcx> LateLintPass<'tcx> for LintPass {
263
261
// Don't lint things expanded by #[derive(...)], etc or `await` desugaring
264
262
return ;
265
263
}
266
- // Do not emit if clippy::ref_pattern is not allowed to avoid having two lints for the same issue.
267
- if !is_lint_allowed ( cx, REF_PATTERN , expr. hir_id ) {
268
- return ;
269
- }
270
264
let sym;
271
265
let binding = match expr. kind {
272
266
ExprKind :: Path ( ref qpath) if !matches ! ( qpath, hir:: QPath :: LangItem ( ..) ) => {
You can’t perform that action at this time.
0 commit comments