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
if I use cargo build --release then the -C overflow-checks is correctly passed to rustc, however cargo test --release doesn't pass the overflow-checks to rustc
When using --release, tests switch to the bench profile. There's more information about profile selection at https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection. Named profiles (tracked in #6988) will likely change that behavior to pick release since it uses a more consistent profile choice.
Problem
my Cargo.toml settings
[profile.release]
overflow-checks = true
[profile.test]
overflow-checks = true
if I use cargo build --release then the -C overflow-checks is correctly passed to rustc, however cargo test --release doesn't pass the overflow-checks to rustc
Steps
see above
Possible Solution(s)
Notes
Output of
cargo version
:cargo 1.54.0 (5ae8d74 2021-06-22)
The text was updated successfully, but these errors were encountered: