rustdoc: Don't include private paths in all.html

This commit is contained in:
Oliver Middleton 2018-04-13 14:58:43 +01:00
parent 9afed64645
commit abded6111b
2 changed files with 11 additions and 1 deletions

View file

@ -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;