about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-04-22 23:40:43 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-04-22 23:40:43 -0400
commit56cb9163ce8a6edc3c52f8a76da2d173fca5f0b5 (patch)
treec68f6e54ec21d34d548ffc16115e21c409a9c0a7 /src
parent7f4afdf0255600306bf67432da722c7b5d2cbf82 (diff)
downloadrust-56cb9163ce8a6edc3c52f8a76da2d173fca5f0b5.tar.gz
rust-56cb9163ce8a6edc3c52f8a76da2d173fca5f0b5.zip
rustdoc: Stop special casing `broken_intra_doc_links` unnecessarily
Diffstat (limited to 'src')
-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 be7bff1a29c..fc0c0a2572a 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -269,14 +269,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 =