Use doc_cfg to mark Error::new

Created by  David Tolnay  on March 30, 2020
ZHN3HE2M5YXFA24J733T6IHQO55CXAQWQD7XIVM37AH23TWLVSQAC
Change contents