Skip to content

Commit 75dde88

Browse files
committed
Fix rebase changes using removed methods
1 parent 1de5c90 commit 75dde88

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
20402040
let ty::FnPtr(found) = found.kind() else {
20412041
return;
20422042
};
2043-
let Some(Node::Expr(arg)) = self.tcx.hir().find(*arg_hir_id) else {
2043+
let Some(Node::Expr(arg)) = self.tcx.opt_hir_node(*arg_hir_id) else {
20442044
return;
20452045
};
20462046
let hir::ExprKind::Path(path) = arg.kind else {

0 commit comments

Comments
 (0)