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 Nif* macros requiring an encoder #676

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

filmor
Copy link
Member

@filmor filmor commented Jan 6, 2025

This was probably a left-over from a refactoring. If the encoder was not requested, the macros compiled to code with a dangling #[allow(...)] which leads to a parser error.

Fixes #675.

@@ -225,6 +225,39 @@ pub fn tuplestruct_record_echo(tuplestruct: TupleStructRecord) -> TupleStructRec
tuplestruct
}

mod check_if_only_decode_is_enough {
Copy link
Member

Choose a reason for hiding this comment

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

There is also a test for encode, decode further above in this file, maybe that test should reference the mod here or so..

@filmor filmor merged commit 47ce1af into rusterlium:master Jan 6, 2025
58 checks passed
@filmor filmor deleted the derive-only-decode branch January 6, 2025 20:51
filmor added a commit that referenced this pull request Jan 8, 2025
* Fix Nif* macros requiring an encoder
* Add note and changelog entry
filmor added a commit that referenced this pull request Jan 8, 2025
* Fix Nif* macros requiring an encoder
* Add note and changelog entry
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.

Derive expansion error
2 participants