diff options
| author | bors <bors@rust-lang.org> | 2021-05-08 09:46:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-08 09:46:18 +0000 |
| commit | bef3dc5b7f7df3301a86e48cd618f6b1ed80915c (patch) | |
| tree | a3fbae3e52af980f9667f2b09743330bba7df5dc | |
| parent | 50e1dc1536264ab71c0850f346b12309477f29f7 (diff) | |
| parent | 56cb9163ce8a6edc3c52f8a76da2d173fca5f0b5 (diff) | |
| download | rust-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.rs | 9 |
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 = |
