Skip to content

Commit

Permalink
Fix cache_messages::rustdoc test broken on beta.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Aug 26, 2020
1 parent 5165270 commit 10426ac
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/testsuite/cache_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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(),
Expand Down

0 comments on commit 10426ac

Please sign in to comment.