X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibrustdoc%2Fcore.rs;h=0f8750b082569794777854d363b58287f28029a8;hb=9849327384fca36d539b87bbd641da3e0ef8a729;hp=7b0c0b6699653a1f0a877140a4109b5db4e2c6ff;hpb=8f0b1863d0617be844112778e77544a5bcee79cd;p=rust.git diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index 7b0c0b66996..0f8750b0825 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -226,14 +226,7 @@ impl<'tcx> DocContext<'tcx> { lints_to_show.extend(crate::lint::RUSTDOC_LINTS.iter().map(|lint| lint.name.to_string())); let (lint_opts, lint_caps) = crate::lint::init_lints(lints_to_show, lint_opts, |lint| { - // FIXME: why is this necessary? - if lint.name == crate::lint::BROKEN_INTRA_DOC_LINKS.name - || lint.name == crate::lint::INVALID_CODEBLOCK_ATTRIBUTES.name - { - None - } else { - Some((lint.name_lower(), lint::Allow)) - } + Some((lint.name_lower(), lint::Allow)) }); let crate_types = @@ -355,7 +348,7 @@ impl<'tcx> DocContext<'tcx> { }); rustc_passes::stability::check_unused_or_stable_features(tcx); - let access_levels = tcx.privacy_access_levels(LOCAL_CRATE); + let access_levels = tcx.privacy_access_levels(()); // Convert from a HirId set to a DefId set since we don't always have easy access // to the map from defid -> hirid let access_levels = AccessLevels {