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
{{ message }}
Repository navigation
component wit panics when an interface re-exports a type from outside an interface #2793
thread 'main' panicked at crates/wit-parser/src/resolve/mod.rs:1608:22:
internal error: entered unreachable code
Decoding gives interface k a use of the world's t, which WIT can't express, and Resolve::type_interface_dep doesn't expect a use of anything but an interface's type. Re-exporting a type from an unnamed instance, such as (import "foo" (instance (export "t" (type (sub resource))))), panics with "no entry found for key" at crates/wit-parser/src/decoding.rs:1611:58 instead.
Re-exporting an anonymous type that the component already used, such as a (list u32) that's also a parameter of a world function, hits the same unreachable!(), even though WIT can express it as type x = list<u32>.
Activity