Stream: git-wasmtime

Topic: wasmtime / PR #1311 cranelift-{module, faerie}: minor imp...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 18:58):

pchickey opened PR #1311 from pch/cranelift_module_errors to master:

I updated faerie to always return the fully structured
ArtifactError type throughout its API. This PR makes sure we also return that structured
error type in the FaerieProduct methods.

I have also revised the cranelift_module::ModuleError::Backend error variant, which appears
to only be used by the faerie backend, to contain an anyhow::Error instead of a String. This
way we retain more error information without breaking the abstraction that cranelift-module
doesn't know anything specific (like types) from its backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 18:58):

pchickey requested sunfishcode for a review on PR #1311.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 19:08):

sunfishcode submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 19:08):

sunfishcode created PR Review Comment:

Would it be difficult to update wasmtime-cli/debug/obj to faerie 0.15.0 so that we're just using one version?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 19:08):

sunfishcode submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 22:09):

pchickey submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 22:09):

pchickey created PR Review Comment:

Sorry, I failed to grep for these. Will fix them all right now!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 22:31):

pchickey updated PR #1311 from pch/cranelift_module_errors to master:

I updated faerie to always return the fully structured
ArtifactError type throughout its API. This PR makes sure we also return that structured
error type in the FaerieProduct methods.

I have also revised the cranelift_module::ModuleError::Backend error variant, which appears
to only be used by the faerie backend, to contain an anyhow::Error instead of a String. This
way we retain more error information without breaking the abstraction that cranelift-module
doesn't know anything specific (like types) from its backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 22:31):

pchickey requested sunfishcode for a review on PR #1311.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 16 2020 at 18:56):

pchickey updated PR #1311 from pch/cranelift_module_errors to master:

I updated faerie to always return the fully structured
ArtifactError type throughout its API. This PR makes sure we also return that structured
error type in the FaerieProduct methods.

I have also revised the cranelift_module::ModuleError::Backend error variant, which appears
to only be used by the faerie backend, to contain an anyhow::Error instead of a String. This
way we retain more error information without breaking the abstraction that cranelift-module
doesn't know anything specific (like types) from its backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 17 2020 at 16:44):

pchickey updated PR #1311 from pch/cranelift_module_errors to master:

I updated faerie to always return the fully structured
ArtifactError type throughout its API. This PR makes sure we also return that structured
error type in the FaerieProduct methods.

I have also revised the cranelift_module::ModuleError::Backend error variant, which appears
to only be used by the faerie backend, to contain an anyhow::Error instead of a String. This
way we retain more error information without breaking the abstraction that cranelift-module
doesn't know anything specific (like types) from its backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 17 2020 at 17:55):

sunfishcode submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 17 2020 at 17:56):

pchickey merged PR #1311.


Last updated: Nov 22 2024 at 17:03 UTC