jrandolf opened issue #14856:
A few smaller
bindgen!issues around labelled imports andnamed_imports:
- A
named_importskey naming an interface that's in the package but not imported by the world (e.g. only exported) makes the proc macro panic withno entry found for keyinstead of reporting an error. An unknown key gives a proper error.@unstablegates on labelled imports are looked up by interface id, so every label of an interface gets the first label's gate. Withimport a: store; @unstable(feature = x) import b: store;,bis linked with defaultLinkOptions, and gatingainstead gatesb.- An unversioned key like
named_imports: { "foo:foo/store": u32 }binds only the first matching version when the world importsa: foo:foo/store@0.1.0andb: foo:foo/store@0.2.0;bis silently left unbound.- Export labels can collide with generated names: in package
foo:foo,export foo: greeter; export greeter;fails with E0428.
alexcrichton added the wasm-proposal:component-model-implements label to Issue #14856.
jrandolf commented on issue #14856:
The rest was fixed in #14867. We don't have a concrete need for the label collisions (#14891), so I'm closing this.
jrandolf closed issue #14856:
A few smaller
bindgen!issues around labelled imports andnamed_imports:
- A
named_importskey naming an interface that's in the package but not imported by the world (e.g. only exported) makes the proc macro panic withno entry found for keyinstead of reporting an error. An unknown key gives a proper error.@unstablegates on labelled imports are looked up by interface id, so every label of an interface gets the first label's gate. Withimport a: store; @unstable(feature = x) import b: store;,bis linked with defaultLinkOptions, and gatingainstead gatesb.- An unversioned key like
named_imports: { "foo:foo/store": u32 }binds only the first matching version when the world importsa: foo:foo/store@0.1.0andb: foo:foo/store@0.2.0;bis silently left unbound.- Export labels can collide with generated names: in package
foo:foo,export foo: greeter; export greeter;fails with E0428.
Last updated: Oct 31 2026 at 23:03 UTC