Stream: git-wasmtime

Topic: wasmtime / issue #7074 wit-bindgen: Only emit error type ...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 21 2023 at 22:05):

elliottt opened issue #7074:

Feature

When a type is used in an error position in a result in multiple interfaces, it gets an impl std::error::Error definition in each module that it's used in. It should only get a single impl in the module that defines it instead.

Benefit

Error type reuse would be easier between wit interfaces.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 21 2023 at 23:15):

alexcrichton commented on issue #7074:

Ah ok I don't think that duplicate impls are generated, just a confusing rustc error message -- this should be fixed by https://github.com/bytecodealliance/wasmtime/pull/7075

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2023 at 18:28):

alexcrichton closed issue #7074:

Feature

When a type is used in an error position in a result in multiple interfaces, it gets an impl std::error::Error definition in each module that it's used in. It should only get a single impl in the module that defines it instead.

Benefit

Error type reuse would be easier between wit interfaces.


Last updated: Nov 22 2024 at 17:03 UTC