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

Use keep case for Rust union discriminant type. #7321

Merged
merged 1 commit into from
May 23, 2022
Merged

Conversation

CasperN
Copy link
Collaborator

@CasperN CasperN commented May 23, 2022

Fixes #7320. (tested locally on the given schema)

I realize that Rust doesn't really follow the Namer convention, since
it uses Field case for methods... that's a future problem.

Fixes google#7320.

I realize that Rust doesn't really follow the Namer convention, since
it uses Field case for methods... that's a future problem.
@github-actions github-actions bot added c++ codegen Involving generating code from schema rust labels May 23, 2022
@CasperN CasperN merged commit 9aa08a4 into google:master May 23, 2022
calebzulawski pushed a commit to calebzulawski/flatbuffers that referenced this pull request Jun 13, 2022
Fixes google#7320.

I realize that Rust doesn't really follow the Namer convention, since
it uses Field case for methods... that's a future problem.

Co-authored-by: Casper Neo <[email protected]>
sssooonnnggg pushed a commit to sssooonnnggg/flatbuffers that referenced this pull request Aug 8, 2022
Fixes google#7320.

I realize that Rust doesn't really follow the Namer convention, since
it uses Field case for methods... that's a future problem.

Co-authored-by: Casper Neo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ codegen Involving generating code from schema rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[rust] Naming a union variable in camelCase generates broken code
1 participant