Skip to content

rust: ErrorContext ownership isn't modeled in APIs #1189

@alexcrichton

Description

@alexcrichton

This input:

package test:foo;

world the-world {
  import x: func(x: list<error-context>);
}

generates:

pub fn x(x: &[wit_bindgen::rt::async_support::ErrorContext]) -> () {

but I believe that error-context values are passed by ownership, so this semantically isn't the right signature for Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    asyncRelated to async/streams in the component model.gen-rustRelated to bindings for Rust-compiled-to-WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions