Skip to content

Commit

Permalink
crater run, off with more wheel chocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxiangfei2009 committed Aug 26, 2024
1 parent e694863 commit 975059d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_hir_analysis/src/check/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ fn resolve_block<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, blk: &'tcx h
}
}
if let Some(tail_expr) = blk.expr {
if visitor.tcx.features().shorter_tail_lifetimes
&& blk.span.edition().at_least_rust_2024()
{
if blk.span.edition().at_least_rust_2021() {
visitor.terminating_scopes.insert(tail_expr.hir_id.local_id);
}
visitor.visit_expr(tail_expr);
Expand Down

0 comments on commit 975059d

Please sign in to comment.