Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename generated structures to Guest in bindgen #7794

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

alexcrichton
Copy link
Member

This mirrors how traits for the host are all called Host and it avoids name clashes with types that share the name of the interface they are in.

I've also added some simple debugging of macro-generated code to get better error messages.

Closes #7775

This mirrors how traits for the host are all called `Host` and it avoids
name clashes with types that share the name of the interface they are in.

I've also added some simple debugging of macro-generated code to get
better error messages.

Closes bytecodealliance#7775
@alexcrichton alexcrichton requested a review from a team as a code owner January 18, 2024 18:57
@alexcrichton alexcrichton requested review from pchickey and removed request for a team January 18, 2024 18:57
@alexcrichton alexcrichton added this pull request to the merge queue Jan 18, 2024
Merged via the queue into bytecodealliance:main with commit 38421d6 Jan 18, 2024
18 checks passed
@alexcrichton alexcrichton deleted the fix-same-name branch January 18, 2024 22:39
alexcrichton added a commit to alexcrichton/witx-bindgen that referenced this pull request Jan 31, 2024
alexcrichton added a commit to alexcrichton/witx-bindgen that referenced this pull request Jan 31, 2024
alexcrichton added a commit to bytecodealliance/wit-bindgen that referenced this pull request Feb 2, 2024
rvolosatovs pushed a commit to bytecodealliance/wrpc that referenced this pull request May 23, 2024
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.

bindgen: errors if interface and exported resource have same name
2 participants