Skip to content
Permalink
Browse files

Fix error code failure check in rustdoc test

  • Loading branch information
GuillaumeGomez committed Jan 3, 2020
1 parent a80e63f commit 9876f6bd9c2927633e6df21889a585469dc5fce6
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/librustdoc/test.rs
@@ -299,7 +299,6 @@ fn run_test(
eprint!("{}", self.0);
}
}

let out = str::from_utf8(&output.stderr).unwrap();
let _bomb = Bomb(&out);
match (output.status.success(), compile_fail) {
@@ -309,7 +308,7 @@ fn run_test(
(true, false) => {}
(false, true) => {
if !error_codes.is_empty() {
error_codes.retain(|err| !out.contains(err));
error_codes.retain(|err| !out.contains(&format!("error[{}]: ", err)));

if !error_codes.is_empty() {
return Err(TestFailure::MissingErrorCodes(error_codes));

0 comments on commit 9876f6b

Please sign in to comment.
You can’t perform that action at this time.