diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-11-17 16:13:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-17 16:13:46 +0100 |
| commit | 81f9feba97adba7efc81e53a1bb0222ac977121b (patch) | |
| tree | 0e2ac5e29e5f7fc05be06f4ea4f36431fa6a99ea /src/librustdoc/html | |
| parent | e0ef0fc392963438af5f0343bf7caa46fb9c3ec3 (diff) | |
| parent | ec10824e2d2407e3addcd9877be923cc52399511 (diff) | |
| download | rust-81f9feba97adba7efc81e53a1bb0222ac977121b.tar.gz rust-81f9feba97adba7efc81e53a1bb0222ac977121b.zip | |
Rollup merge of #74293 - GuillaumeGomez:rustdoc-test-compiler-output-color, r=jyn514
Rustdoc test compiler output color Fixes #72915 We just need to be sure it doesn't break rustdoc doctests' compilation checks. Maybe some other unforeseen consequences too? r? `@ehuss` cc `@rust-lang/rustdoc`
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index cdb9aea5ad6..880c859dd1b 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -243,7 +243,8 @@ impl<'a, I: Iterator<Item = Event<'a>>> Iterator for CodeBlocks<'_, 'a, I> { .collect::<Vec<Cow<'_, str>>>() .join("\n"); let krate = krate.as_ref().map(|s| &**s); - let (test, _) = doctest::make_test(&test, krate, false, &Default::default(), edition); + let (test, _, _) = + doctest::make_test(&test, krate, false, &Default::default(), edition); let channel = if test.contains("#