Skip to content

leave a consumer-named type's other traits unknown - #1094

Merged
ahl merged 3 commits into
v0_10from
native-traits
Oct 14, 2026
Merged

ahl merged 3 commits into
v0_10from
native-traits

Conversation

@ahl

@ahl ahl commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

A replacement, a conversion, or an x-rust-type specifies a type that typify can't inspect. It declares the type as implementing nothing beyond the traits that the consumer named, so a Set of such a type, or a required trait across all types, produces a generation error for a trait the type might implement (but we can't be sure). This change makes those traits explicitly unknown for typespace: we hope for the best and let the compiler sort it out.

@ahl
ahl merged commit 7cf5f96 into v0_10 Oct 14, 2026
4 checks passed
@ahl
ahl deleted the native-traits branch October 14, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant