diff options
| author | Alona Enraght-Moony <code@alona.page> | 2023-11-09 12:13:16 +0000 |
|---|---|---|
| committer | Alona Enraght-Moony <code@alona.page> | 2023-11-09 12:13:16 +0000 |
| commit | 22e1576a1208eddf7c3fc0ef0227cc36a6c8db1e (patch) | |
| tree | f46c011928759363659e70e7e6fb5d3625726cf0 | |
| parent | 287ae4db75228ef8260a112bcc65245f05e18340 (diff) | |
| download | rust-22e1576a1208eddf7c3fc0ef0227cc36a6c8db1e.tar.gz rust-22e1576a1208eddf7c3fc0ef0227cc36a6c8db1e.zip | |
rustdoc-json: Fix test so it actuall checks things
After #111427, no item has a `kind` field, so these assertions could never fail. Instead, assert that those two items arn't present.
| -rw-r--r-- | tests/rustdoc-json/reexport/pub_use_doc_hidden.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rustdoc-json/reexport/pub_use_doc_hidden.rs b/tests/rustdoc-json/reexport/pub_use_doc_hidden.rs index 46c3da4c15b..15d194ef5d9 100644 --- a/tests/rustdoc-json/reexport/pub_use_doc_hidden.rs +++ b/tests/rustdoc-json/reexport/pub_use_doc_hidden.rs @@ -2,11 +2,12 @@ mod repeat_n { #[doc(hidden)] + /// not here pub struct RepeatN {} } +/// not here pub use repeat_n::RepeatN; // @count "$.index[*][?(@.name=='pub_use_doc_hidden')].inner.items[*]" 0 -// @!has "$.index[*][?(@.kind=='struct')]" -// @!has "$.index[*][?(@.kind=='import')]" +// @!has "$.index[*][?(@.docs == 'not here')]" |
