-
Notifications
You must be signed in to change notification settings - Fork 83
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
GEN-150: ResultExt
doesn't cover Report<EyreReport>
for some reason
#4295
Comments
Hi @0x009922 and thanks for opening the issue. |
ResultExt
doesn't cover Report<EyreReport>
for some reasonResultExt
doesn't cover Report<EyreReport>
for some reason
ResultExt
doesn't cover Report<EyreReport>
for some reasonResultExt
doesn't cover Report<EyreReport>
for some reason
ResultExt
doesn't cover Report<EyreReport>
for some reasonResultExt
doesn't cover Report<EyreReport>
for some reason
I investigated this further:
I see three options here. In any case, we should change something, any of these changes is a breaking change.
I like the first solution the most, however, I'm not sure about the implications. @indietyp what are your thoughts on this? |
I had a quick call with @indietyp and we agreed that the first option is sub optimal due to the implications. Being able to enforce |
Describe the bug
For a reason I haven't yet understood,
ResultExt
trait doesn't work onerror_stack::Result
(e.g.change_context
is not found), althoughEyreReport
seems to satisfy theContext
trait.However, it is possible to call
Report::change_context
on it without a problem.To reproduce
https://github.com/0x009922/error-stack-eyre-compat-issue
Expected behavior
Expected
.into_report().change_context(...)
to workRust compiler
1.76.0 (07dca489a 2024-02-04)
Host
aarch64-apple-darwin
Target
aarch64-apple-darwin
Version
0.4.1
Features
default, eyre
Additional context
Compiler error:
The text was updated successfully, but these errors were encountered: