← Rule catalog

Cargo health · Reliability

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

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.

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 .

Set it once in rust-doctor.toml

Other Reliability rules