@@ -461,7 +461,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
461461 } ;
462462
463463 let def_id = cx. tcx . hir ( ) . local_def_id ( it. hir_id ) ;
464- let ( article, desc) = cx. tcx . article_and_description ( def_id) ;
464+ let ( article, desc) = cx. tcx . article_and_description ( def_id. to_def_id ( ) ) ;
465465
466466 self . check_missing_docs_attrs ( cx, Some ( it. hir_id ) , & it. attrs , it. span , article, desc) ;
467467 }
@@ -472,7 +472,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
472472 }
473473
474474 let def_id = cx. tcx . hir ( ) . local_def_id ( trait_item. hir_id ) ;
475- let ( article, desc) = cx. tcx . article_and_description ( def_id) ;
475+ let ( article, desc) = cx. tcx . article_and_description ( def_id. to_def_id ( ) ) ;
476476
477477 self . check_missing_docs_attrs (
478478 cx,
@@ -491,7 +491,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
491491 }
492492
493493 let def_id = cx. tcx . hir ( ) . local_def_id ( impl_item. hir_id ) ;
494- let ( article, desc) = cx. tcx . article_and_description ( def_id) ;
494+ let ( article, desc) = cx. tcx . article_and_description ( def_id. to_def_id ( ) ) ;
495495 self . check_missing_docs_attrs (
496496 cx,
497497 Some ( impl_item. hir_id ) ,
@@ -1531,7 +1531,8 @@ impl ExplicitOutlivesRequirements {
15311531 inferred_outlives : & ' tcx [ ( ty:: Predicate < ' tcx > , Span ) ] ,
15321532 ty_generics : & ' tcx ty:: Generics ,
15331533 ) -> Vec < ty:: Region < ' tcx > > {
1534- let index = ty_generics. param_def_id_to_index [ & tcx. hir ( ) . local_def_id ( param. hir_id ) ] ;
1534+ let index =
1535+ ty_generics. param_def_id_to_index [ & tcx. hir ( ) . local_def_id ( param. hir_id ) . to_def_id ( ) ] ;
15351536
15361537 match param. kind {
15371538 hir:: GenericParamKind :: Lifetime { .. } => {
0 commit comments