mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
Auto merge of #84470 - jyn514:lints, r=GuillaumeGomez
rustdoc: Stop special casing `broken_intra_doc_links` unnecessarily
This commit is contained in:
commit
bef3dc5b7f
@ -226,14 +226,7 @@ crate fn create_config(
|
||||
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 =
|
||||
|
Loading…
Reference in New Issue
Block a user