Skip to content

Commit 6c8400e

Browse files
committed
remove feature(inline_const_pat)
1 parent 4f2ee8c commit 6c8400e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/matches/redundant_guards.rs

-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ fn emit_redundant_guards<'tcx>(
246246
fn expr_can_be_pat(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
247247
for_each_expr_without_closures(expr, |expr| {
248248
if match expr.kind {
249-
ExprKind::ConstBlock(..) => cx.tcx.features().inline_const_pat(),
250249
ExprKind::Call(c, ..) if let ExprKind::Path(qpath) = c.kind => {
251250
// Allow ctors
252251
matches!(cx.qpath_res(&qpath, c.hir_id), Res::Def(DefKind::Ctor(..), ..))

0 commit comments

Comments
 (0)