make missing_doc respect the visibility rules

Only publicly-visible items need be lint-checked by missing_doc.

- Don't deny on invisible internal items.
- Ensure the targets of `pub use` statements are documented, even when
  they are defined in a private module.

Fixes #9777.