From 22e1576a1208eddf7c3fc0ef0227cc36a6c8db1e Mon Sep 17 00:00:00 2001 From: Alona Enraght-Moony Date: Thu, 9 Nov 2023 12:13:16 +0000 Subject: [PATCH] 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. --- tests/rustdoc-json/reexport/pub_use_doc_hidden.rs | 5 +++-- 1 file 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 46c3da4c15b35..15d194ef5d925 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')]"