mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
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.
This commit is contained in:
parent
287ae4db75
commit
22e1576a12
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
mod repeat_n {
|
mod repeat_n {
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
|
/// not here
|
||||||
pub struct RepeatN {}
|
pub struct RepeatN {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// not here
|
||||||
pub use repeat_n::RepeatN;
|
pub use repeat_n::RepeatN;
|
||||||
|
|
||||||
// @count "$.index[*][?(@.name=='pub_use_doc_hidden')].inner.items[*]" 0
|
// @count "$.index[*][?(@.name=='pub_use_doc_hidden')].inner.items[*]" 0
|
||||||
// @!has "$.index[*][?(@.kind=='struct')]"
|
// @!has "$.index[*][?(@.docs == 'not here')]"
|
||||||
// @!has "$.index[*][?(@.kind=='import')]"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user