diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-07-14 14:44:12 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-11-17 10:32:48 +0100 |
| commit | 54e8216348a1cd47a7fe43bbfbf7fd469ae83c44 (patch) | |
| tree | 38b7bd8ca95202366f47187a46541c8609cb9916 | |
| parent | 96a6a5fec12a71b28db6cb8a22202e18a6ae9cf4 (diff) | |
| download | rust-54e8216348a1cd47a7fe43bbfbf7fd469ae83c44.tar.gz rust-54e8216348a1cd47a7fe43bbfbf7fd469ae83c44.zip | |
Update error code detection in compile_fail doctests
| -rw-r--r-- | src/librustdoc/doctest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs index b49bbf3f801..478a72f400a 100644 --- a/src/librustdoc/doctest.rs +++ b/src/librustdoc/doctest.rs @@ -333,7 +333,7 @@ fn run_test( (true, false) => {} (false, true) => { if !error_codes.is_empty() { - error_codes.retain(|err| !out.contains(&format!("error[{}]: ", err))); + error_codes.retain(|err| !out.contains(&format!("error[{}]", err))); if !error_codes.is_empty() { return Err(TestFailure::MissingErrorCodes(error_codes)); |
