about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-08 09:46:18 +0000
committerbors <bors@rust-lang.org>2021-05-08 09:46:18 +0000
commitbef3dc5b7f7df3301a86e48cd618f6b1ed80915c (patch)
treea3fbae3e52af980f9667f2b09743330bba7df5dc
parent50e1dc1536264ab71c0850f346b12309477f29f7 (diff)
parent56cb9163ce8a6edc3c52f8a76da2d173fca5f0b5 (diff)
downloadrust-bef3dc5b7f7df3301a86e48cd618f6b1ed80915c.tar.gz
rust-bef3dc5b7f7df3301a86e48cd618f6b1ed80915c.zip
Auto merge of #84470 - jyn514:lints, r=GuillaumeGomez
rustdoc: Stop special casing `broken_intra_doc_links` unnecessarily
-rw-r--r--src/librustdoc/core.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
index 7b0c0b66996..b43916f9f33 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -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 =