-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rely on core::error::Error
#9702
Conversation
I'll note that this is a draft as this depends on a few upstream PRs:
|
Subscribe to Label Actioncc @fitzgen
This issue or pull request has been labeled: "wasmtime:api", "wasmtime:ref-types"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
6b26585
to
76168ca
Compare
Ok everything's good to go except |
I'm getting segfaults on s390x in bytecodealliance#9702 and I can't reproduce them locally in QEMU. Try updating QEMU to see if it's a transient bug. Historical updates haven't always gone well, so let's see what CI says. prtest:full
I'm getting segfaults on s390x in bytecodealliance#9702 and I can't reproduce them locally in QEMU. Try updating QEMU to see if it's a transient bug. Historical updates haven't always gone well, so let's see what CI says. prtest:full
* Update QEMU used in CI I'm getting segfaults on s390x in #9702 and I can't reproduce them locally in QEMU. Try updating QEMU to see if it's a transient bug. Historical updates haven't always gone well, so let's see what CI says. prtest:full * Update risc-v qemu arguments
With Wasmtime's new MSRV at 1.81 this means that `core::error::Error` is available which means that in `no_std` mode the `Error` trait can be used. This has been integrated into `anyhow::Error` already upstream and means that we can remove our own local hacks such as the `Err2Anyhow` trait. This commit removes the `Err2Anyhow` trait and all usage, going back to idiomatic Rust error propagation and conversion even in the `no_std` world. This should make code more portable by default and remove some weird idioms we had for supporting this. prtest:full
bafda17
to
4d4bf84
Compare
c36f842
to
0cb480b
Compare
Ok through much trial and error I've discovered that the s390x-specific failure on CI with this PR is due to the I've disabled backtraces in CI for now. If that works and this lands I'll file an issue and cc Ulrich. |
With Wasmtime's new MSRV at 1.81 this means that
core::error::Error
is available which means that inno_std
mode theError
trait can be used. This has been integrated intoanyhow::Error
already upstream and means that we can remove our own local hacks such as theErr2Anyhow
trait.This commit removes the
Err2Anyhow
trait and all usage, going back to idiomatic Rust error propagation and conversion even in theno_std
world. This should make code more portable by default and remove some weird idioms we had for supporting this.