File tree 4 files changed +4
-22
lines changed
4 files changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -1369,7 +1369,9 @@ impl Context {
1369
1369
self . render_redirect_pages = self . maybe_ignore_item ( & item) ;
1370
1370
}
1371
1371
1372
- if item. is_mod ( ) {
1372
+ if item. attrs . list ( "doc" ) . has_word ( "hidden" ) {
1373
+ Ok ( ( ) )
1374
+ } else if item. is_mod ( ) {
1373
1375
// modules are special because they add a namespace. We also need to
1374
1376
// recurse into the items of the module as well.
1375
1377
let name = item. name . as_ref ( ) . unwrap ( ) . to_string ( ) ;
Original file line number Diff line number Diff line change @@ -37,10 +37,7 @@ pub fn strip_hidden(krate: clean::Crate) -> plugins::PluginResult {
37
37
debug ! ( "found one in strip_hidden; removing" ) ;
38
38
// use a dedicated hidden item for given item type if any
39
39
match i. inner {
40
- clean:: StructFieldItem ( ..) | clean:: ModuleItem ( ..) => {
41
- return Strip ( i) . fold ( )
42
- }
43
- _ => return None ,
40
+ _ => return Strip ( i) . fold ( ) ,
44
41
}
45
42
} else {
46
43
self . retained . insert ( i. def_id ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ pub trait Foo {}
19
19
// @has redirect/index.html
20
20
// @has - '//code' 'pub use reexp_stripped::Bar'
21
21
// @has - '//code/a' 'Bar'
22
- // @has reexp_stripped/hidden/struct.Bar.html
23
- // @has - '//p/a' '../../reexp_stripped/struct.Bar.html'
24
22
// @has 'reexp_stripped/struct.Bar.html'
25
23
#[ doc( no_inline) ]
26
24
pub use reexp_stripped:: Bar ;
You can’t perform that action at this time.
0 commit comments