Make use of `feature(doc_cfg)` conditional on `docsrs` consistently
feature(doc_cfg)
is turned on conditionally if docsrs
is true in
most of the source code, but in some cases this isn't the case. This
change makes that consistent everywhere, fixing the doc build on stable
Rust.
Fixes #506 (closed).