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
This is some-what similar to #18, where the debug symbols are turned on, but there are quite a few other differences between the dev and release profiles.
Certain classes of bugs are ignored in the release profile, and it makes finding them difficult. The easiest thing to do would be add the following to the profile if a flag is turned on.
debug-assertions = true
overflow-checks = true
The overflow checks are really useful to make sure you aren't overflowing on a multiplication step that is common at the end. The debug-assertion, makes sure that you aren't doing something dumb that would normally be caught.
The release profile disables them compared to the dev profile.
The text was updated successfully, but these errors were encountered:
pedantic79
changed the title
Run with assertions turned enabled
Run with assertions enabled
Dec 6, 2020
As a workaround, you can set the environment variable CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS = "true" to enable overflow checks. There might be something similar for debug assertions. You might be able to get it to work with a RUSTFLAGS setting too.
This is some-what similar to #18, where the debug symbols are turned on, but there are quite a few other differences between the
dev
andrelease
profiles.Certain classes of bugs are ignored in the release profile, and it makes finding them difficult. The easiest thing to do would be add the following to the profile if a flag is turned on.
The overflow checks are really useful to make sure you aren't overflowing on a multiplication step that is common at the end. The debug-assertion, makes sure that you aren't doing something dumb that would normally be caught.
The
release
profile disables them compared to thedev
profile.The text was updated successfully, but these errors were encountered: