We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
error[{}]:
1 parent 95ee1fc commit 63785c8Copy full SHA for 63785c8
src/librustdoc/doctest.rs
@@ -336,6 +336,9 @@ fn run_test(
336
(true, false) => {}
337
(false, true) => {
338
if !error_codes.is_empty() {
339
+ // We used to check if the output contained "error[{}]: " but since we added the
340
+ // colored output, we can't anymore because of the color escape characters before
341
+ // the ":".
342
error_codes.retain(|err| !out.contains(&format!("error[{}]", err)));
343
344
0 commit comments