1
Fork 0

Substitute missing item suggestion correctly

This commit is contained in:
Michael Goulet 2023-04-19 17:20:28 +00:00
parent de96f3d873
commit 204c516293
5 changed files with 27 additions and 12 deletions

View file

@ -863,7 +863,7 @@ fn check_impl_items_against_trait<'tcx>(
if !missing_items.is_empty() {
let full_impl_span =
tcx.hir().span_with_body(tcx.hir().local_def_id_to_hir_id(impl_id));
missing_items_err(tcx, tcx.def_span(impl_id), &missing_items, full_impl_span);
missing_items_err(tcx, impl_id, &missing_items, full_impl_span);
}
if let Some(missing_items) = must_implement_one_of {