Skip to content

Commit 6aa732a

Browse files
crater run
1 parent 26a3c30 commit 6aa732a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: .gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
shallow = true
55
[submodule "src/tools/cargo"]
66
path = src/tools/cargo
7-
url = https://github.com/rust-lang/cargo.git
7+
url = https://github.com/dingxiangfei2009/cargo.git
88
shallow = true
99
[submodule "src/doc/reference"]
1010
path = src/doc/reference

Diff for: compiler/rustc_hir_analysis/src/check/region.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
471471

472472
hir::ExprKind::If(cond, then, Some(otherwise)) => {
473473
let expr_cx = visitor.cx;
474-
let data = if expr.span.at_least_rust_2024() && visitor.tcx.features().if_let_rescope {
474+
let data = if expr.span.at_least_rust_2024() {
475475
ScopeData::IfThenRescope
476476
} else {
477477
ScopeData::IfThen
@@ -486,7 +486,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
486486

487487
hir::ExprKind::If(cond, then, None) => {
488488
let expr_cx = visitor.cx;
489-
let data = if expr.span.at_least_rust_2024() && visitor.tcx.features().if_let_rescope {
489+
let data = if expr.span.at_least_rust_2024() {
490490
ScopeData::IfThenRescope
491491
} else {
492492
ScopeData::IfThen

Diff for: compiler/rustc_mir_build/src/thir/cx/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ impl<'tcx> Cx<'tcx> {
707707
if_then_scope: region::Scope {
708708
id: then.hir_id.local_id,
709709
data: {
710-
if expr.span.at_least_rust_2024() && tcx.features().if_let_rescope {
710+
if expr.span.at_least_rust_2024() {
711711
region::ScopeData::IfThenRescope
712712
} else {
713713
region::ScopeData::IfThen

Diff for: src/tools/cargo

Submodule cargo updated 108 files

0 commit comments

Comments
 (0)