Skip to content

Commit

Permalink
Unrolled build for rust-lang#117751
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#117751 - aDotInTheVoid:unkind, r=GuillaumeGomez

rustdoc-json: Fix test so it actually checks things

After rust-lang#111427, no item has a `kind` field, so these assertions could never fail. Instead, assert that those two items arn't present.

r? `@GuillaumeGomez`
  • Loading branch information
rust-timer committed Nov 10, 2023
2 parents 0f44eb3 + 22e1576 commit c5e931c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/rustdoc-json/reexport/pub_use_doc_hidden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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')]"

0 comments on commit c5e931c

Please sign in to comment.