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`
This commit is contained in:
Matthias Krüger 2023-11-10 01:50:26 +01:00 committed by GitHub
commit 186a3c8c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')]"