Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
aad1db737347b93b51a7dc45dcb6bec9e367bc02
rust/tests/rustdoc/inline_local/hidden-use.rs

11 lines
186 B
Rust
Raw Normal View History

rustdoc: Don't inline #[doc(hidden)] pub use Currently if a `#[doc(hidden)] pub use` item is inlined the `hidden` attribute is ignored so the item can appear in the docs. By never inlining such imports, they can be stripped.
2016-06-07 01:20:12 +01:00
mod private {
pub struct Foo {}
}
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ has hidden_use/index.html
//@ !hasraw - 'private'
//@ !hasraw - 'Foo'
//@ !has hidden_use/struct.Foo.html
rustdoc: Don't inline #[doc(hidden)] pub use Currently if a `#[doc(hidden)] pub use` item is inlined the `hidden` attribute is ignored so the item can appear in the docs. By never inlining such imports, they can be stripped.
2016-06-07 01:20:12 +01:00
#[doc(hidden)]
pub use private::Foo;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1234ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API