diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-13 05:16:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-13 05:16:55 +0200 |
| commit | 06dc33853ec0e78cf37546b28bc108eb282b14d4 (patch) | |
| tree | 4dcb27bd7e305dfe24a313fcef5643d7d7050a0c /tests/rustdoc | |
| parent | 8ae89893bec2c4c605fa404d8222b90da663ea0f (diff) | |
| parent | fca28ab5132810b21182176ac02bdd292b77a368 (diff) | |
| download | rust-06dc33853ec0e78cf37546b28bc108eb282b14d4.tar.gz rust-06dc33853ec0e78cf37546b28bc108eb282b14d4.zip | |
Rollup merge of #141770 - GuillaumeGomez:cfg-false-mod-rendering, r=camelid
Merge `Cfg::render_long_html` and `Cfg::render_long_plain` methods common code Follow-up of https://github.com/rust-lang/rust/pull/141747. Thanks `@camelid` for spotting it! r? `@camelid`
Diffstat (limited to 'tests/rustdoc')
| -rw-r--r-- | tests/rustdoc/cfg-bool.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/rustdoc/cfg-bool.rs b/tests/rustdoc/cfg-bool.rs index 34fdfbe930e..0aaa132e0b5 100644 --- a/tests/rustdoc/cfg-bool.rs +++ b/tests/rustdoc/cfg-bool.rs @@ -3,11 +3,15 @@ // regression test for https://github.com/rust-lang/rust/issues/138112 -//@ has 'foo/fn.foo.html' '//div[@class="stab portability"]' 'Available nowhere' +//@ has 'foo/index.html' +//@ has - '//*[@class="stab portability"]/@title' 'Available nowhere' + +//@ count 'foo/fn.foo.html' '//*[@class="stab portability"]' 1 +//@ has 'foo/fn.foo.html' '//*[@class="stab portability"]' 'Available nowhere' #[doc(cfg(false))] pub fn foo() {} -// a cfg(true) will simply be ommited, as it is the same as no cfg. -//@ !has 'foo/fn.bar.html' '//div[@class="stab portability"]' '' +// a cfg(true) will simply be omitted, as it is the same as no cfg. +//@ count 'foo/fn.bar.html' '//*[@class="stab portability"]' 0 #[doc(cfg(true))] pub fn bar() {} |
