From 10426acb548ca527f4971d348c7125608c13fcec Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 26 Aug 2020 11:17:57 -0700 Subject: [PATCH] Fix cache_messages::rustdoc test broken on beta. --- tests/testsuite/cache_messages.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/testsuite/cache_messages.rs b/tests/testsuite/cache_messages.rs index 1df15b22764..54f2e2d1c43 100644 --- a/tests/testsuite/cache_messages.rs +++ b/tests/testsuite/cache_messages.rs @@ -238,12 +238,8 @@ fn rustdoc() { .file( "src/lib.rs", " - #![warn(private_doc_tests)] - /// asdf - /// ``` - /// let x = 1; - /// ``` - fn f() {} + #![warn(missing_docs)] + pub fn f() {} ", ) .build(); @@ -254,7 +250,7 @@ fn rustdoc() { .expect("rustdoc to run"); assert!(rustdoc_output.status.success()); let rustdoc_stderr = as_str(&rustdoc_output.stderr); - assert!(rustdoc_stderr.contains("private")); + assert!(rustdoc_stderr.contains("missing")); assert!(rustdoc_stderr.contains("\x1b[")); assert_eq!( p.glob("target/debug/.fingerprint/foo-*/output-*").count(),