@@ -563,7 +563,7 @@ impl MissingDoc {
563
563
// It's an option so the crate root can also use this function (it doesn't
564
564
// have a `NodeId`).
565
565
if def_id != CRATE_DEF_ID {
566
- if !cx. access_levels . is_exported ( def_id) {
566
+ if !cx. effective_visibilities . is_exported ( def_id) {
567
567
return ;
568
568
}
569
569
}
@@ -721,7 +721,7 @@ declare_lint_pass!(MissingCopyImplementations => [MISSING_COPY_IMPLEMENTATIONS])
721
721
722
722
impl < ' tcx > LateLintPass < ' tcx > for MissingCopyImplementations {
723
723
fn check_item ( & mut self , cx : & LateContext < ' _ > , item : & hir:: Item < ' _ > ) {
724
- if !cx. access_levels . is_reachable ( item. def_id . def_id ) {
724
+ if !cx. effective_visibilities . is_reachable ( item. def_id . def_id ) {
725
725
return ;
726
726
}
727
727
let ( def, ty) = match item. kind {
@@ -814,7 +814,7 @@ impl_lint_pass!(MissingDebugImplementations => [MISSING_DEBUG_IMPLEMENTATIONS]);
814
814
815
815
impl < ' tcx > LateLintPass < ' tcx > for MissingDebugImplementations {
816
816
fn check_item ( & mut self , cx : & LateContext < ' _ > , item : & hir:: Item < ' _ > ) {
817
- if !cx. access_levels . is_reachable ( item. def_id . def_id ) {
817
+ if !cx. effective_visibilities . is_reachable ( item. def_id . def_id ) {
818
818
return ;
819
819
}
820
820
@@ -1385,7 +1385,8 @@ impl UnreachablePub {
1385
1385
exportable : bool ,
1386
1386
) {
1387
1387
let mut applicability = Applicability :: MachineApplicable ;
1388
- if cx. tcx . visibility ( def_id) . is_public ( ) && !cx. access_levels . is_reachable ( def_id) {
1388
+ if cx. tcx . visibility ( def_id) . is_public ( ) && !cx. effective_visibilities . is_reachable ( def_id)
1389
+ {
1389
1390
if vis_span. from_expansion ( ) {
1390
1391
applicability = Applicability :: MaybeIncorrect ;
1391
1392
}
0 commit comments