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(neon): Close scopes in release builds #952

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

kjvalencik
Copy link
Member

@kjvalencik kjvalencik commented Jan 3, 2023

There's a pretty big footgun in debug_assert_eq!. When compiled out, in addition to the assertion being removed, the included expressions do not evaluate at all.

This fix moves the necessary scope closes outside of the assertion macro.

This bug was introduced in e174393 and currently only exists in the 1.0 pre-release.

Copy link
Collaborator

@dherman dherman left a comment

Choose a reason for hiding this comment

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

That is so subtle! What a great catch.

:shipit:

@kjvalencik kjvalencik merged commit 0804dad into main Jan 3, 2023
@kjvalencik kjvalencik deleted the kv/scoped-bug branch January 3, 2023 21:47
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.

2 participants