Skip to content

Rename generated structures to Guest in bindgen#7794

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-same-name
Jan 18, 2024
Merged

Rename generated structures to Guest in bindgen#7794
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-same-name

Conversation

@alexcrichton
Copy link
Copy Markdown
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
@alexcrichton alexcrichton deleted the fix-same-name branch January 18, 2024 22:39
alexcrichton added a commit to alexcrichton/wit-bindgen that referenced this pull request Jan 31, 2024
alexcrichton added a commit to alexcrichton/wit-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