diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-03-25 20:34:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 20:34:48 -0400 |
| commit | fc8fc051b6ae165ef0959ed40e197e42bcf05b75 (patch) | |
| tree | 072ea36ee9070ddcdf73aae2d25533867f80f4f1 /src/librustdoc | |
| parent | 0d61b83f59b2cc44c9098bba575ae968c9d3a1ca (diff) | |
| parent | 90c541d637c0857c6d5b1c3bf835e2f02f7175a9 (diff) | |
| download | rust-fc8fc051b6ae165ef0959ed40e197e42bcf05b75.tar.gz rust-fc8fc051b6ae165ef0959ed40e197e42bcf05b75.zip | |
Rollup merge of #138877 - TaKO8Ki:enable-per-target-ignores-for-doctests, r=notriddle
Ignore doctests only in specified targets Quick fix for #138863 FIxes #138863 cc `@yotamofek` `@notriddle`
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 5aab4199d43..0d547a6a0d9 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -1201,11 +1201,12 @@ impl LangString { seen_rust_tags = !seen_other_tags; } LangStringToken::LangToken(x) - if let Some(ignore) = x.strip_prefix("ignore-") - && enable_per_target_ignores => + if let Some(ignore) = x.strip_prefix("ignore-") => { - ignores.push(ignore.to_owned()); - seen_rust_tags = !seen_other_tags; + if enable_per_target_ignores { + ignores.push(ignore.to_owned()); + seen_rust_tags = !seen_other_tags; + } } LangStringToken::LangToken("rust") => { data.rust = true; |
