-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide Error::description and cause methods #66859
Conversation
Description has been documented as soft-deprecated since 1.27.0, cause has been documented as deprecated since 1.30.0 and has produced deprecation warnings since 1.33.0. There is no longer any reason to call or implement either of these methods. Now it's a year or a year and a half later and there is less and less reason over time to even know about either one. This commit adds #[doc(hidden)] to Error::description and Error::cause to keep them out of the standard library's API documentation.
r? @Kimundi (rust_highfive has picked a reviewer for you, use r? to override) |
@rfcbot poll @rust-lang/libs hide them? |
Team member @dtolnay has asked teams: T-libs, for consensus on:
|
Shouldn't we actually-deprecate description? I don't really like hiding deprecated APIs - it just makes things confusing when you're trying to figure out where some method comes from. |
Okay that's fair -- I opened #66919 as an alternative which keeps them visible. |
@Amanieu @Kimundi @KodrAus @sfackler @withoutboats waiting for your consensus on the poll above |
I think another solution is preferred in #66919 @Dylan-DPC |
Closing this because #66919 is in FCP and is the clear preference of the libs team |
description
has been documented as soft-deprecated since 1.27.0,cause
has been documented as deprecated since 1.30.0 and has produced deprecation warnings since 1.33.0. There is no longer any reason to call or implement either of these methods. Now it's a year or a year and a half later and there is less and less reason over time to even know about either one.This commit adds
#[doc(hidden)]
toError::description
andError::cause
to keep them out of the standard library's API documentation.