Skip to content

Commit

Permalink
Unrolled build for rust-lang#128836
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#128836 - its-the-shrimp:add_test_for_107278, r=aDotInTheVoid

rustdoc-json: add a test for impls on private & hidden types

Fixes rust-lang#107278 (or rather just ensures it won't resurface)
r? ``@aDotInTheVoid``
  • Loading branch information
rust-timer committed Aug 9, 2024
2 parents c7b0d4e + 1bf30eb commit b1a13b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/rustdoc-json/impls/pub_for_hidden_private.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//@ compile-flags: --document-private-items --document-hidden-items

pub trait TheTrait {}

#[doc(hidden)]
struct Value {}

//@ has '$.index[*][?(@.docs=="THE IMPL")]'
/// THE IMPL
impl TheTrait for Value {}

0 comments on commit b1a13b9

Please sign in to comment.