rustc_middle: Remove Visibility::Invisible

This commit is contained in:
Vadim Petrochenkov
2022-08-27 18:36:57 +03:00
parent 332cc8fb75
commit fc3f3c304b
10 changed files with 43 additions and 53 deletions

View File

@@ -293,7 +293,7 @@ fn skip_stability_check_due_to_privacy(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
// These are not visible outside crate; therefore
// stability markers are irrelevant, if even present.
ty::Visibility::Restricted(..) | ty::Visibility::Invisible => true,
ty::Visibility::Restricted(..) => true,
}
}