-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Location (URL)
https://doc.rust-lang.org/std/error/trait.Error.html
Summary
std::error::Error
requires Display
and has .source()
.
It is not clear whether Error
is supposed to include source in Display
.
Libraries like anyhow
assume that Display
does not print source, the library is popular, so it seems like this is how Display
should be done. So would be good to include that in the documentation of Error
trait.
This is specification request.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.