1
Fork 0

stabilize if_let_rescope

This commit is contained in:
Ding Xiang Fei 2024-10-21 05:06:30 +08:00
parent be01dabfef
commit 6d569f769c
No known key found for this signature in database
GPG key ID: 3CD748647EEF6359
20 changed files with 30 additions and 84 deletions

View file

@ -777,7 +777,7 @@ impl<'tcx> Cx<'tcx> {
if_then_scope: region::Scope {
id: then.hir_id.local_id,
data: {
if expr.span.at_least_rust_2024() && tcx.features().if_let_rescope() {
if expr.span.at_least_rust_2024() {
region::ScopeData::IfThenRescope
} else {
region::ScopeData::IfThen