diff options
| author | Ding Xiang Fei <dingxiangfei2009@protonmail.ch> | 2024-10-21 04:47:02 +0800 |
|---|---|---|
| committer | Ding Xiang Fei <dingxiangfei2009@protonmail.ch> | 2024-10-24 01:56:08 +0800 |
| commit | 0689b2139fa90aeb6f42930ee783cc2f322cd265 (patch) | |
| tree | e9ecb27f433fd2e4fc1aec1949351d49f9c98f61 /compiler/rustc_hir_analysis/src | |
| parent | be01dabfefd2daa4574b974f571c7852085d60cb (diff) | |
stabilize shorter-tail-lifetimes
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/region.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/region.rs b/compiler/rustc_hir_analysis/src/check/region.rs index 312fb16c93a..bfa088fdefc 100644 --- a/compiler/rustc_hir_analysis/src/check/region.rs +++ b/compiler/rustc_hir_analysis/src/check/region.rs @@ -167,9 +167,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_2024() { visitor.terminating_scopes.insert(tail_expr.hir_id.local_id); } visitor.visit_expr(tail_expr); |
