alexcrichton opened PR #9702 from alexcrichton:core-error
to bytecodealliance:main
:
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.
alexcrichton commented on PR #9702:
I'll note that this is a draft as this depends on a few upstream PRs:
- https://github.com/gimli-rs/object/pull/747
- https://github.com/bytecodealliance/wasm-tools/pull/1928
- An update in this repo of wasm-tools (blocked on https://github.com/bytecodealliance/wasm-tools/pull/1927)
alexcrichton updated PR #9702.
pchickey submitted PR review.
github-actions[bot] commented on PR #9702:
Subscribe to Label Action
cc @fitzgen
<details>
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:
- fitzgen: wasmtime:ref-types
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
alexcrichton updated PR #9702.
alexcrichton has marked PR #9702 as ready for review.
alexcrichton requested wasmtime-core-reviewers for a review on PR #9702.
alexcrichton requested abrown for a review on PR #9702.
alexcrichton requested wasmtime-default-reviewers for a review on PR #9702.
alexcrichton commented on PR #9702:
Ok everything's good to go except
object
. I've also added an update ofanyhow
andserde
to pull in their latest versions which have support forcore::error::Error
. A small workaround forobject::Error
has been added temporarily which can be removed once the upstream PR is merged and/or the feature is settled one way or another.
alexcrichton updated PR #9702.
alexcrichton has enabled auto merge for PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton updated PR #9702.
alexcrichton commented on PR #9702:
Ok through much trial and error I've discovered that the s390x-specific failure on CI with this PR is due to the
anyhow
update. That's specifically the 1.0.76 to 1.0.77 update (which we're jumping from 75 to 93 here). This update usesstd::backtrace
by default and respectsRUST_BACKTRACE=1
. For the longest time I couldn't reproduce this locally, and turns out I copied over all env vars in CI exceptRUST_BACKTRACE=1
.I've disabled backtraces in CI for now. If that works and this lands I'll file an issue and cc Ulrich.
alexcrichton merged PR #9702.
Last updated: Dec 23 2024 at 13:07 UTC