Skip to content

Commit bb72117

Browse files
committed
fix rebase
1 parent ce83be4 commit bb72117

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_trait_selection/src/traits/error_reporting

1 file changed

+1
-2
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1451,8 +1451,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
14511451
if let hir::ExprKind::Path(hir::QPath::Resolved(None, path)) = expr.kind
14521452
&& let hir::def::Res::Local(hir_id) = path.res
14531453
&& let Some(hir::Node::Pat(binding)) = self.tcx.hir().find(hir_id)
1454-
&& let parent_hir_id = self.tcx.hir().get_parent_node(binding.hir_id)
1455-
&& let Some(hir::Node::Local(local)) = self.tcx.hir().find(parent_hir_id)
1454+
&& let Some(hir::Node::Local(local)) = self.tcx.hir().find_parent(binding.hir_id)
14561455
&& let None = local.ty
14571456
&& let Some(binding_expr) = local.init
14581457
{

0 commit comments

Comments
 (0)