From e694863a5d4214e06c5f7692d9859e699af482d5 Mon Sep 17 00:00:00 2001 From: Ding Xiang Fei Date: Mon, 26 Aug 2024 17:48:49 +0800 Subject: [PATCH] crater run, off the wheel chocks --- compiler/rustc_lint/src/tail_expr_drop_order.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/compiler/rustc_lint/src/tail_expr_drop_order.rs b/compiler/rustc_lint/src/tail_expr_drop_order.rs index f9ecc8c9806f4..30c9724338fe6 100644 --- a/compiler/rustc_lint/src/tail_expr_drop_order.rs +++ b/compiler/rustc_lint/src/tail_expr_drop_order.rs @@ -137,9 +137,7 @@ impl<'tcx> LateLintPass<'tcx> for TailExprDropOrder { _: Span, def_id: rustc_span::def_id::LocalDefId, ) { - if cx.tcx.sess.at_least_rust_2024() && cx.tcx.features().shorter_tail_lifetimes { - Self::check_fn_or_closure(cx, fn_kind, body, def_id); - } + Self::check_fn_or_closure(cx, fn_kind, body, def_id); } } @@ -185,10 +183,6 @@ impl<'tcx, 'a> Visitor<'tcx> for LintVisitor<'tcx, 'a> { impl<'tcx, 'a> LintVisitor<'tcx, 'a> { fn check_block_inner(&mut self, block: &Block<'tcx>) { - if !block.span.at_least_rust_2024() { - // We only lint for Edition 2024 onwards - return; - } let Some(tail_expr) = block.expr else { return }; for stmt in block.stmts { match stmt.kind {