mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
remove feature(inline_const_pat)
This commit is contained in:
@@ -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(..), ..))
|
||||
|
||||
Reference in New Issue
Block a user