auto merge of #10233 : sfackler/rust/private-module, r=alexcrichton

A private module will survive the strip-private pass if it contains
trait implementations, which aren't stripped until a separate pass in
render.
This commit is contained in:
bors 2013-11-02 03:11:10 -07:00
commit 22dfdc927b

View File

@ -622,6 +622,11 @@ impl DocFolder for Cache {
}
None
}
// Private modules may survive the strip-private pass if
// they contain impls for public types, but those will get
// stripped here
clean::Item { inner: clean::ModuleItem(ref m), _ }
if m.items.len() == 0 => None,
i => Some(i),
}
}