Skip to content

wit-bindgen: Only emit error type impls in one place #7074

@elliottt

Description

@elliottt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions