rustdoc: hide private traits in strip-private pass

Fix #16563