Add warn(unreachable_pub) to rustc_passes.

This commit is contained in:
Nicholas Nethercote
2024-08-29 15:17:14 +10:00
parent 76bd802403
commit f77821203f
10 changed files with 197 additions and 192 deletions

View File

@@ -359,6 +359,6 @@ impl<'ast, 'tcx> visit::Visitor<'ast> for LanguageItemCollector<'ast, 'tcx> {
}
}
pub fn provide(providers: &mut Providers) {
pub(crate) fn provide(providers: &mut Providers) {
providers.get_lang_items = get_lang_items;
}