The function calls in the debug_assert! will be ignored in release
build. As a result, the function call inside won't be executed. We
should not call functions in the debug_assert!. We should probably
not call functions in assert! either since the assert! may be
changed to debug_assert! someday.
The function calls in the
debug_assert!
will be ignored in release build. As a result, the function call inside won't be executed. We should not call functions in thedebug_assert!
. We should probably not call functions inassert!
either since theassert!
may be changed todebug_assert!
someday.