You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a WIT component imports multiple interfaces that share the same final name from different packages (e.g. wasi:filesystem/types and wasi:http/types), the host_bindgen! macro generates duplicate trait members in the RootImports trait:
// Both wasi:filesystem/types and wasi:http/types produce:typeTypes = ...;fntypes(&mutself) -> ...;
This causes: error[E0428]: the name 'Types' is defined multiple times
Additionally, once colliding names are disambiguated (e.g. FilesystemTypes), noff_var_id and emit_resource_ref still generate the old un-disambiguated name (I::Types) for type variable references and resource table entries, causing error[E0220]: associated type 'Types' not found for 'I'.
Steps to Reproduce
Use a WIT world that imports both wasi:filesystem/types and wasi:http/types:
Activity