Files
rust/tests/rustdoc-json/visibility/doc_hidden_default.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
384 B
Rust
Raw Normal View History

#![no_std]
// Without `--document-hidden-items`,
// none of these items are present in rustdoc JSON.
//@ !has "$.index[?(@.name=='func')]"
#[doc(hidden)]
pub fn func() {}
//@ !has "$.index[?(@.name=='Unit')]"
#[doc(hidden)]
pub struct Unit;
//@ !has "$.index[?(@.name=='hidden')]"
#[doc(hidden)]
pub mod hidden {
//@ !has "$.index[?(@.name=='Inner')]"
pub struct Inner;
}