-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Impl Error for Box<T: Error> #30796
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
Impl Error for Box<T: Error> #30796
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
4113823
to
31f7f3a
Compare
I'd like to run crater over this to make sure it doesn't have too much intended breakage first. |
Please do! :) |
Crater reports one regressions which is spurious, so I think this is good to go. @bors: r+ 31f7f3a835141605c579d00471ce1bb331f2f192 |
@bors: r- er actually, can you define this for |
I didn't because of a problem. Hold on, I try again to see why. |
That's the error I get by adding #[stable(feature = "box_error", since = "1.7.0")]
impl<T: Error + ?Sized> Error for Box<T> {
fn description(&self) -> &str {
Error::description(&**self)
}
fn cause(&self) -> Option<&Error> {
Error::cause(&**self)
}
} |
Hm right, that's what I remember getting in the past. I'm gonna hold off on r+'ing for now and tag this with T-libs to get some more discussion. I'm a little worried that Curious on others' thoughts as well though |
cc @rust-lang/libs |
☔ The latest upstream changes (presumably #31124) made this pull request unmergeable. Please resolve the merge conflicts. |
31f7f3a
to
f9f2981
Compare
Any news on this? |
Unfortunately we haven't had time yet in libs triage to come back around to this, but it's still on the agenda. |
The libs team discussed this during triage today and the conclusion was to merge. We may want to ensure that |
Fixes #30349