@@ -1193,7 +1193,7 @@ impl Context {
1193
1193
// these modules are recursed into, but not rendered normally (a
1194
1194
// flag on the context).
1195
1195
if !self . render_redirect_pages {
1196
- self . render_redirect_pages = ignore_private_item ( & item) ;
1196
+ self . render_redirect_pages = ignore_empty_item ( & item) ;
1197
1197
}
1198
1198
1199
1199
match item. inner {
@@ -1444,7 +1444,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
1444
1444
try!( document ( w, item) ) ;
1445
1445
1446
1446
let mut indices = range ( 0 , items. len ( ) ) . filter ( |i| {
1447
- !ignore_private_item ( & items[ * i] )
1447
+ !ignore_empty_item ( & items[ * i] )
1448
1448
} ) . collect :: < Vec < uint > > ( ) ;
1449
1449
1450
1450
fn cmp ( i1 : & clean:: Item , i2 : & clean:: Item , idx1 : uint , idx2 : uint ) -> Ordering {
@@ -2161,7 +2161,7 @@ impl<'a> fmt::Show for Sidebar<'a> {
2161
2161
fn build_sidebar ( m : & clean:: Module ) -> HashMap < String , Vec < String > > {
2162
2162
let mut map = HashMap :: new ( ) ;
2163
2163
for item in m. items . iter ( ) {
2164
- if ignore_private_item ( item) { continue }
2164
+ if ignore_empty_item ( item) { continue }
2165
2165
2166
2166
let short = shortty ( item) . to_static_str ( ) ;
2167
2167
let myname = match item. name {
@@ -2215,13 +2215,11 @@ fn item_primitive(w: &mut fmt::Formatter,
2215
2215
render_methods ( w, it)
2216
2216
}
2217
2217
2218
- fn ignore_private_item ( it : & clean:: Item ) -> bool {
2218
+ fn ignore_empty_item ( it : & clean:: Item ) -> bool {
2219
2219
match it. inner {
2220
2220
clean:: ModuleItem ( ref m) => {
2221
- ( m. items . len ( ) == 0 && it. doc_value ( ) . is_none ( ) ) ||
2222
- it. visibility != Some ( ast:: Public )
2221
+ ( m. items . len ( ) == 0 && it. doc_value ( ) . is_none ( ) )
2223
2222
}
2224
- clean:: PrimitiveItem ( ..) => it. visibility != Some ( ast:: Public ) ,
2225
2223
_ => false ,
2226
2224
}
2227
2225
}
0 commit comments