Skip to content

Commit 3cdc689

Browse files
committed
Fix rebase
1 parent d97d2fe commit 3cdc689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1139,15 +1139,15 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
11391139
if let Some(other_expr) = other_expr
11401140
&& let Some(parent_let) =
11411141
self.infcx.tcx.hir().parent_iter(expr.hir_id).find_map(|n| {
1142-
if let (hir_id, hir::Node::Local(_) | hir::Node::Stmt(_)) = n {
1142+
if let (hir_id, hir::Node::LetStmt(_) | hir::Node::Stmt(_)) = n {
11431143
Some(hir_id)
11441144
} else {
11451145
None
11461146
}
11471147
})
11481148
&& let Some(other_parent_let) =
11491149
self.infcx.tcx.hir().parent_iter(other_expr.hir_id).find_map(|n| {
1150-
if let (hir_id, hir::Node::Local(_) | hir::Node::Stmt(_)) = n {
1150+
if let (hir_id, hir::Node::LetStmt(_) | hir::Node::Stmt(_)) = n {
11511151
Some(hir_id)
11521152
} else {
11531153
None

0 commit comments

Comments
 (0)