You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notably, that macro will only evaluate its argument expressions if ::util::ENFORCE_SANITY is true.
This means that the init() is a no-op if ::util::ENFORCE_SANITY is false. That is probably not what we intended.
We should probably either change the init() code to first run each expression and then pass their return value to the rtassert! macro, or change the rtassert! macro to unconditionally evaluate its argument.
The text was updated successfully, but these errors were encountered:
Here is some code from
at_exit_impl.rs
:The above calls are using the
rtassert!(..)
macro from macros.rs:Notably, that macro will only evaluate its argument expressions if
::util::ENFORCE_SANITY
is true.This means that the
init()
is a no-op if::util::ENFORCE_SANITY
is false. That is probably not what we intended.We should probably either change the
init()
code to first run each expression and then pass their return value to thertassert!
macro, or change thertassert!
macro to unconditionally evaluate its argument.The text was updated successfully, but these errors were encountered: