Rustdoc: Properly strip private modules

A private module will survive the strip-private pass if it contains
trait implementations, which aren't stripped until a separate pass in
render.
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.