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

Fix derive Getable for tuple structs #546

Merged
merged 2 commits into from Jun 5, 2018
Merged

Conversation

Laegluin
Copy link
Contributor

@Laegluin Laegluin commented Jun 5, 2018

When using the new derive macros, I noticed that tuple structs caused panics when deriving Getable, because that branch was not implemented. This fixes the problem and also adds #[allow(unused_variables)] to the generated code (occurs when using C-style enums, that do not use the vm parameter).

Copy link
Member

@Marwes Marwes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

@Marwes
Copy link
Member

Marwes commented Jun 5, 2018

bors r+

bors bot added a commit that referenced this pull request Jun 5, 2018
546: Fix derive Getable for tuple structs r=Marwes a=Laegluin

When using the new derive macros, I noticed that tuple structs caused panics when deriving `Getable`, because that branch was not implemented. This fixes the problem and also adds `#[allow(unused_variables)]` to the generated code (occurs when using C-style enums, that do not use the `vm` parameter).

Co-authored-by: Robin Mirow <robinmirow@live.com>
@bors
Copy link
Contributor

bors bot commented Jun 5, 2018

Build succeeded

@bors bors bot merged commit dbea36a into gluon-lang:master Jun 5, 2018
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.

None yet

2 participants