elliottt opened issue #7074:
Feature
When a type is used in an error position in a
result
in multiple interfaces, it gets animpl 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.
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
alexcrichton closed issue #7074:
Feature
When a type is used in an error position in a
result
in multiple interfaces, it gets animpl 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