Rollup merge of #50032 - ollie27:rustdoc_all_private, r=GuillaumeGomez
rustdoc: Don't include private paths in all.html For example the `std` [`all.html`](https://doc.rust-lang.org/nightly/std/all.html) includes references to the `coresimd` module which is a private implementation detail. r? @GuillaumeGomez
This commit is contained in:
commit
92d29c1267
2 changed files with 11 additions and 1 deletions
|
|
@ -28,3 +28,11 @@ pub union Union {
|
|||
pub const CONST: u32 = 0;
|
||||
pub static STATIC: &str = "baguette";
|
||||
pub fn function() {}
|
||||
|
||||
mod private_module {
|
||||
pub struct ReexportedStruct;
|
||||
}
|
||||
|
||||
// @has foo/all.html '//a[@href="struct.ReexportedStruct.html"]' 'ReexportedStruct'
|
||||
// @!has foo/all.html 'private_module'
|
||||
pub use private_module::ReexportedStruct;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue