bytecodealliance / bytecodealliance/wit-bindgen

rust: Generated resource bindings can conflict with resource methods

Open
#1,059 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

```wit
package repro:pkg;
world example {
resource repro {
constructor();
handle: func();
}
}
```

generates two conflicting `Repro::handle` methods; one `#[doc(hidden)]` internal method and the actual resource method. Same would presumably be true for `take_handle` and (`static`) `from_handle`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.