Skip to content

Commit 0882def

Browse files
committed
review
1 parent 45b44c7 commit 0882def

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
@@ -212,7 +212,7 @@ pub trait TypeErrCtxtExt<'tcx> {
212212

213213
fn extract_callable_info(
214214
&self,
215-
hir_id: LocalDefId,
215+
body_id: LocalDefId,
216216
param_env: ty::ParamEnv<'tcx>,
217217
found: Ty<'tcx>,
218218
) -> Option<(DefIdOrName, Ty<'tcx>, Vec<Ty<'tcx>>)>;
@@ -1112,7 +1112,6 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
11121112
/// Extracts information about a callable type for diagnostics. This is a
11131113
/// heuristic -- it doesn't necessarily mean that a type is always callable,
11141114
/// because the callable type must also be well-formed to be called.
1115-
// FIXME(vincenzopalazzo): move the HirId to a LocalDefId
11161115
fn extract_callable_info(
11171116
&self,
11181117
body_id: LocalDefId,

0 commit comments

Comments
 (0)