Avoid compiler error about glob imports in getopts example
Remove features from librustdoc
Fix tests
auto merge of #11142 : alan-andrade/rust/improve_opts_example, r=cmr

Ran into this in practice, fixing it to improve example correctness.