From 66beb4e5b4fe9b8dd5aa29c4bc8c775825a3b5e4 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 9 Jul 2018 18:10:08 +0200 Subject: [PATCH] add comment about lints whitelisting --- src/librustdoc/core.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index c7a8e6804f6..f1ec82e0783 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -241,6 +241,8 @@ pub fn run_core(search_paths: SearchPaths, .into_iter() .chain(rustc_lint::SoftLints.get_lints().into_iter()) .filter_map(|lint| { + // We don't want to whitelist *all* lints so let's + // ignore those ones. if lint.name == warnings_lint_name || lint.name == intra_link_resolution_failure_name || lint.name == missing_docs {