Skip to content

Commit bef3dc5

Browse files
committed
Auto merge of #84470 - jyn514:lints, r=GuillaumeGomez
rustdoc: Stop special casing `broken_intra_doc_links` unnecessarily
2 parents 50e1dc1 + 56cb916 commit bef3dc5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/librustdoc/core.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,7 @@ crate fn create_config(
226226
lints_to_show.extend(crate::lint::RUSTDOC_LINTS.iter().map(|lint| lint.name.to_string()));
227227

228228
let (lint_opts, lint_caps) = crate::lint::init_lints(lints_to_show, lint_opts, |lint| {
229-
// FIXME: why is this necessary?
230-
if lint.name == crate::lint::BROKEN_INTRA_DOC_LINKS.name
231-
|| lint.name == crate::lint::INVALID_CODEBLOCK_ATTRIBUTES.name
232-
{
233-
None
234-
} else {
235-
Some((lint.name_lower(), lint::Allow))
236-
}
229+
Some((lint.name_lower(), lint::Allow))
237230
});
238231

239232
let crate_types =

0 commit comments

Comments
 (0)