rust/tests/rustdoc-json/impls/impl_item_visibility_show_private.rs

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

24 lines
499 B
Rust
Raw Permalink Normal View History

//@ compile-flags: --document-private-items
pub struct Foo;
/// impl Foo priv
impl Foo {
fn baz() {}
}
//@ is '$.index[*][?(@.docs=="impl Foo priv")].visibility' '"default"'
/// impl Foo pub
impl Foo {
pub fn qux() {}
}
//@ is '$.index[*][?(@.docs=="impl Foo pub")].visibility' '"default"'
/// impl Foo hidden
impl Foo {
#[doc(hidden)]
pub fn __quazl() {}
}
// FIXME(#111564): Is this the right behaviour?
//@ is '$.index[*][?(@.docs=="impl Foo hidden")].visibility' '"default"'