Skip to content

Commit 9c8d988

Browse files
committed
fix: incorrect disables of used_underscore_binding and short_circuit_statement
1 parent 4bca5f9 commit 9c8d988

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clippy_lints/src/misc.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ impl<'tcx> LateLintPass<'tcx> for LintPass {
229229
if let ExprKind::Binary(ref binop, a, b) = expr.kind;
230230
if binop.node == BinOpKind::And || binop.node == BinOpKind::Or;
231231
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);
234232
then {
235233
span_lint_hir_and_then(
236234
cx,
@@ -263,10 +261,6 @@ impl<'tcx> LateLintPass<'tcx> for LintPass {
263261
// Don't lint things expanded by #[derive(...)], etc or `await` desugaring
264262
return;
265263
}
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-
}
270264
let sym;
271265
let binding = match expr.kind {
272266
ExprKind::Path(ref qpath) if !matches!(qpath, hir::QPath::LangItem(..)) => {

0 commit comments

Comments
 (0)