about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2025-03-14 12:47:08 +0100
committerlcnr <rust@lcnr.de>2025-03-21 09:35:31 +0100
commit6c8400e342609de052ec287fecaf67cef04da1d2 (patch)
tree89238c97c63d7e8ab123c714c508fc0726a35017
parent4f2ee8ca2ab3e76b5fe509358069904a58bf9083 (diff)
downloadrust-6c8400e342609de052ec287fecaf67cef04da1d2.tar.gz
rust-6c8400e342609de052ec287fecaf67cef04da1d2.zip
remove `feature(inline_const_pat)`
-rw-r--r--clippy_lints/src/matches/redundant_guards.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/clippy_lints/src/matches/redundant_guards.rs b/clippy_lints/src/matches/redundant_guards.rs
index ab53ad98572..9bbef8da0a4 100644
--- a/clippy_lints/src/matches/redundant_guards.rs
+++ b/clippy_lints/src/matches/redundant_guards.rs
@@ -246,7 +246,6 @@ fn emit_redundant_guards<'tcx>(
 fn expr_can_be_pat(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
     for_each_expr_without_closures(expr, |expr| {
         if match expr.kind {
-            ExprKind::ConstBlock(..) => cx.tcx.features().inline_const_pat(),
             ExprKind::Call(c, ..) if let ExprKind::Path(qpath) = c.kind => {
                 // Allow ctors
                 matches!(cx.qpath_res(&qpath, c.hir_id), Res::Def(DefKind::Ctor(..), ..))