Skip to content

Commit 975059d

Browse files
crater run, off with more wheel chocks
1 parent e694863 commit 975059d

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+1
-3
lines changed

compiler/rustc_hir_analysis/src/check/region.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ fn resolve_block<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, blk: &'tcx h
168168
}
169169
}
170170
if let Some(tail_expr) = blk.expr {
171-
if visitor.tcx.features().shorter_tail_lifetimes
172-
&& blk.span.edition().at_least_rust_2024()
173-
{
171+
if blk.span.edition().at_least_rust_2021() {
174172
visitor.terminating_scopes.insert(tail_expr.hir_id.local_id);
175173
}
176174
visitor.visit_expr(tail_expr);

0 commit comments

Comments
 (0)