Skip to content

Commit 186a3c8

Browse files
authored
Rollup merge of #117751 - aDotInTheVoid:unkind, r=GuillaumeGomez
rustdoc-json: Fix test so it actually 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. r? `@GuillaumeGomez`
2 parents 7607597 + 22e1576 commit 186a3c8

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)