Skip to content

Commit 22e1576

Browse files
committedNov 9, 2023
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.
1 parent 287ae4d commit 22e1576

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎tests/rustdoc-json/reexport/pub_use_doc_hidden.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
mod repeat_n {
44
#[doc(hidden)]
5+
/// not here
56
pub struct RepeatN {}
67
}
78

9+
/// not here
810
pub use repeat_n::RepeatN;
911

1012
// @count "$.index[*][?(@.name=='pub_use_doc_hidden')].inner.items[*]" 0
11-
// @!has "$.index[*][?(@.kind=='struct')]"
12-
// @!has "$.index[*][?(@.kind=='import')]"
13+
// @!has "$.index[*][?(@.docs == 'not here')]"

0 commit comments

Comments
 (0)
Please sign in to comment.