fix missing_doc lint on private traits

Fixes #10069.
auto merge of #10165 : dcrewi/rust/missing-doc-on-private-trait, r=cmr

Fixes #10069.