@@ -461,7 +461,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
461
461
} ;
462
462
463
463
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 ( ) ) ;
465
465
466
466
self . check_missing_docs_attrs ( cx, Some ( it. hir_id ) , & it. attrs , it. span , article, desc) ;
467
467
}
@@ -472,7 +472,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
472
472
}
473
473
474
474
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 ( ) ) ;
476
476
477
477
self . check_missing_docs_attrs (
478
478
cx,
@@ -491,7 +491,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
491
491
}
492
492
493
493
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 ( ) ) ;
495
495
self . check_missing_docs_attrs (
496
496
cx,
497
497
Some ( impl_item. hir_id ) ,
@@ -1531,7 +1531,8 @@ impl ExplicitOutlivesRequirements {
1531
1531
inferred_outlives : & ' tcx [ ( ty:: Predicate < ' tcx > , Span ) ] ,
1532
1532
ty_generics : & ' tcx ty:: Generics ,
1533
1533
) -> 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 ( ) ] ;
1535
1536
1536
1537
match param. kind {
1537
1538
hir:: GenericParamKind :: Lifetime { .. } => {
0 commit comments