From 8515c5fc77fb3d576aa4888ebf45d1e17ca238bc Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Fri, 27 Jul 2018 23:55:41 +0100 Subject: [PATCH] Disable lints in rustdoc --- src/librustdoc/core.rs | 2 +- src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs | 2 ++ src/test/rustdoc-ui/intra-links-warning.rs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index e516192769f..c40e1df027a 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -214,7 +214,7 @@ pub fn run_core(search_paths: SearchPaths, } else { vec![] }, - lint_cap: Some(lint::Forbid), + lint_cap: Some(lint::Allow), cg, externs, target_triple: triple.unwrap_or(host_triple), diff --git a/src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs b/src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs index 85d19c83547..1df5a63a27b 100644 --- a/src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs +++ b/src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-test + #![deny(intra_doc_link_resolution_failure)] /// [v2] //~ ERROR diff --git a/src/test/rustdoc-ui/intra-links-warning.rs b/src/test/rustdoc-ui/intra-links-warning.rs index d6bc275b57a..c99746eaf5b 100644 --- a/src/test/rustdoc-ui/intra-links-warning.rs +++ b/src/test/rustdoc-ui/intra-links-warning.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-test + // compile-pass //! Test with [Foo::baz], [Bar::foo], ...