We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80e63f commit 9876f6bCopy full SHA for 9876f6b
src/librustdoc/test.rs
@@ -299,7 +299,6 @@ fn run_test(
299
eprint!("{}", self.0);
300
}
301
302
-
303
let out = str::from_utf8(&output.stderr).unwrap();
304
let _bomb = Bomb(&out);
305
match (output.status.success(), compile_fail) {
@@ -309,7 +308,7 @@ fn run_test(
309
308
(true, false) => {}
310
(false, true) => {
311
if !error_codes.is_empty() {
312
- error_codes.retain(|err| !out.contains(err));
+ error_codes.retain(|err| !out.contains(&format!("error[{}]: ", err)));
313
314
315
return Err(TestFailure::MissingErrorCodes(error_codes));
0 commit comments