rustdoc: hide private traits in strip-private pass

Fix #16563
auto merge of #17846 : tomjakubowski/rust/rustdoc-hide-private-traits, r=alexcrichton

Fix #16563