Skip to content

Commit 52e245e

Browse files
crater run
1 parent 9b3e058 commit 52e245e

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
@@ -472,7 +472,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
472472

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

488488
hir::ExprKind::If(cond, then, None) => {
489489
let expr_cx = visitor.cx;
490-
let data = if expr.span.at_least_rust_2024() && visitor.tcx.features().if_let_rescope {
490+
let data = if expr.span.at_least_rust_2024() {
491491
ScopeData::IfThenRescope
492492
} else {
493493
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 286 files

0 commit comments

Comments
 (0)