Skip to content

Commit

Permalink
Auto merge of #52796 - ollie27:rustdoc_beta_lints, r=QuietMisdreavus
Browse files Browse the repository at this point in the history
[beta] Disable lints in rustdoc

The lint handling in rustdoc 1.28 is still incomplete so I think it would be best to disable it for the stable release. The main thing that's missing is that cargo doesn't cap lints for dependencies. This was fixed in master by #52354 and rust-lang/cargo#5765 but they haven't been backported. Additionally rustdoc is still emitting lints that are not on its whitelist #51661 (comment).

cc. @rust-lang/rustdoc
  • Loading branch information
bors committed Jul 28, 2018
2 parents 7293eab + 55ad2d8 commit 9dd3f3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 2 additions & 0 deletions src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/test/rustdoc-ui/intra-links-warning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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], ...
Expand Down

0 comments on commit 9dd3f3f

Please sign in to comment.