Skip to content

Commit 1d66f90

Browse files
committed
Auto merge of #8653 - ehuss:fix-cache-messages-rustdoc-test, r=alexcrichton
Fix cache_messages::rustdoc test broken on beta. The most recent beta `rustc 1.47.0-beta.1` broke this test (rust-lang/rust#75951). Just switch to a different lint to get the test working again.
2 parents 5165270 + 10426ac commit 1d66f90

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/testsuite/cache_messages.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,8 @@ fn rustdoc() {
238238
.file(
239239
"src/lib.rs",
240240
"
241-
#![warn(private_doc_tests)]
242-
/// asdf
243-
/// ```
244-
/// let x = 1;
245-
/// ```
246-
fn f() {}
241+
#![warn(missing_docs)]
242+
pub fn f() {}
247243
",
248244
)
249245
.build();
@@ -254,7 +250,7 @@ fn rustdoc() {
254250
.expect("rustdoc to run");
255251
assert!(rustdoc_output.status.success());
256252
let rustdoc_stderr = as_str(&rustdoc_output.stderr);
257-
assert!(rustdoc_stderr.contains("private"));
253+
assert!(rustdoc_stderr.contains("missing"));
258254
assert!(rustdoc_stderr.contains("\x1b["));
259255
assert_eq!(
260256
p.glob("target/debug/.fingerprint/foo-*/output-*").count(),

0 commit comments

Comments
 (0)