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
b708aadfbe70e7146d57404db66a3e9ca8c93e5d
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 {}
}
// @has hidden_use/index.html
Update `@!has` name in tests
2022-08-12 00:44:07 -04:00
// @!hasraw - 'private'
// @!hasraw - 'Foo'
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
// @!has hidden_use/struct.Foo.html
#[doc(hidden)]
pub use private::Foo;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1408ms Template: 4ms
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