rustdoc: Filter out private definitions. Closes #3538
auto merge of #5375 : z0w0/rust/rustdoc-private-hide, r=thestinger