Cargo health · Reliability
Release binary built without overflow checks
rust_doctor::cargo::unchecked_release_overflow
Set overflow-checks = true under [profile.release] so integer overflow panics instead of wrapping silently; the measured cost is a few percent on integer-heavy code, which is the tradeoff this finding asks you to decide.
- Category
- Reliability
- Default level
- warn
- Tier
- P3
- Producer
- Cargo health
- Diff scope
- line
Not a defect when
Profiling shows the checks cost measurable throughput in a hot integer path, and the code uses explicit checked_ or wrapping_ arithmetic wherever overflow matters.
What it reads
Cargo.toml, Cargo.lock and .cargo/config.toml.
Tier
Lowest tier: real, and rarely urgent.
The tier bounds how severe a rule may be; its category bounds the tier.Diff scope
The changed line itself.
What--scope contextual looks at to decide whether a change caused the finding.Change it
Turn it off, or make it blocking, without touching the code it flags:
rust-doctor --rule rust_doctor::cargo::unchecked_release_overflow=off .
rust-doctor --rule rust_doctor::cargo::unchecked_release_overflow=error .