Skip to content

Commit 56cb916

Browse files
committed
rustdoc: Stop special casing broken_intra_doc_links unnecessarily
1 parent 7f4afdf commit 56cb916

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
@@ -269,14 +269,7 @@ crate fn create_config(
269269
lints_to_show.extend(crate::lint::RUSTDOC_LINTS.iter().map(|lint| lint.name.to_string()));
270270

271271
let (lint_opts, lint_caps) = crate::lint::init_lints(lints_to_show, lint_opts, |lint| {
272-
// FIXME: why is this necessary?
273-
if lint.name == crate::lint::BROKEN_INTRA_DOC_LINKS.name
274-
|| lint.name == crate::lint::INVALID_CODEBLOCK_ATTRIBUTES.name
275-
{
276-
None
277-
} else {
278-
Some((lint.name_lower(), lint::Allow))
279-
}
272+
Some((lint.name_lower(), lint::Allow))
280273
});
281274

282275
let crate_types =

0 commit comments

Comments
 (0)