File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1728,7 +1728,9 @@ impl Context {
1728
1728
let mut dst = try_err ! ( File :: create( & joint_dst) , & joint_dst) ;
1729
1729
try_err ! ( dst. write_all( & buf) , & joint_dst) ;
1730
1730
1731
- all. append ( full_path ( self , & item) , & item_type) ;
1731
+ if !self . render_redirect_pages {
1732
+ all. append ( full_path ( self , & item) , & item_type) ;
1733
+ }
1732
1734
// Redirect from a sane URL using the namespace to Rustdoc's
1733
1735
// URL for the page.
1734
1736
let redir_name = format ! ( "{}.{}.html" , name, item_type. name_space( ) ) ;
Original file line number Diff line number Diff line change @@ -28,3 +28,11 @@ pub union Union {
28
28
pub const CONST : u32 = 0 ;
29
29
pub static STATIC : & str = "baguette" ;
30
30
pub fn function ( ) { }
31
+
32
+ mod private_module {
33
+ pub struct ReexportedStruct ;
34
+ }
35
+
36
+ // @has foo/all.html '//a[@href="struct.ReexportedStruct.html"]' 'ReexportedStruct'
37
+ // @!has foo/all.html 'private_module'
38
+ pub use private_module:: ReexportedStruct ;
You can’t perform that action at this time.
0 commit comments