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
a3bd12b88aaf32b1036cdcb2ef3efe509dbebc15
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: 2656ms Template: 3ms
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