1
Fork 0

Rollup merge of #131984 - dingxiangfei2009:stabilize-if-let-rescope, r=traviscross,lcnr

Stabilize if_let_rescope

Close #131154
Tracked by #124085
This commit is contained in:
Matthias Krüger 2024-10-29 18:38:57 +01:00 committed by GitHub
commit 5d6c49938e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 30 additions and 84 deletions

View file

@ -784,7 +784,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