Skip to content

Commit 9dd3f3f

Browse files
committed
Auto merge of #52796 - ollie27:rustdoc_beta_lints, r=QuietMisdreavus
[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
2 parents 7293eab + 55ad2d8 commit 9dd3f3f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/librustdoc/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ pub fn run_core(search_paths: SearchPaths,
214214
} else {
215215
vec![]
216216
},
217-
lint_cap: Some(lint::Forbid),
217+
lint_cap: Some(lint::Allow),
218218
cg,
219219
externs,
220220
target_triple: triple.unwrap_or(host_triple),

src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-test
12+
1113
#![deny(intra_doc_link_resolution_failure)]
1214

1315
/// [v2] //~ ERROR

src/test/rustdoc-ui/intra-links-warning.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-test
12+
1113
// compile-pass
1214

1315
//! Test with [Foo::baz], [Bar::foo], ...

0 commit comments

Comments
 (0)