remove feature(inline_const_pat)
This commit is contained in:
parent
4f2ee8ca2a
commit
6c8400e342
1 changed files with 0 additions and 1 deletions
|
|
@ -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(..), ..))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue