Skip to content

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.

3 participants