← Rule catalog

Cargo health · Reliability

Check-disabling rustflag in .cargo/config.toml

rust_doctor::cargo::permissive_rustflags

Remove the flag from .cargo/config.toml and fix what it silences; the closed list judged here is --cap-lints allow, -A warnings and -C overflow-checks=off, each of which disables a check for every build of this workspace.

Category
Reliability
Default level
warn
Tier
P2
Producer
Cargo health
Diff scope
line

Not a defect when

The config is used only by a dedicated benchmarking or fuzzing setup, never by the build that ships or the one CI tests.

What it reads

Cargo.toml, Cargo.lock and .cargo/config.toml.

Tier

Ordinary defect.

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::permissive_rustflags=off .
rust-doctor --rule rust_doctor::cargo::permissive_rustflags=error .

Set it once in rust-doctor.toml

Other Reliability rules