error-stack: Report<E>
is not compatible with std::error::Error
#2934
Replies: 2 comments 1 reply
-
Hi @Tohman21 and thanks for filing the issue. TL;DR: This is blocked by the I'd love to implement
One other possible route would also be to not remove hash/libs/error-stack/tests/ui/into_report.rs Lines 19 to 24 in 12fecc4 it's possible that one of the listed issues is not really an issue or that I forgot something but it's definitely not easily possible now - and I'm very sad about this! We'd be very happy to hear more thoughts about this as well! Happy to hear some thoughts from @indietyp as well. |
Beta Was this translation helpful? Give feedback.
-
Thanks for quick answer. Yep, the problem is deeper than I thought |
Beta Was this translation helpful? Give feedback.
-
Related Problem
Hello! I ran into a problem, which is better to show with example:
I have implementation of
SomeTrait
that requiresTryInto<Vec<u8>>::Error
implement error_stack::Context. But Report is not impl Context and is not impl Error.Proposed Solution
Implement Error for Report:
It's simple and allows to write more abstract code. In other words Report will compatible with Errors
Alternatives
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions