Suppressions
Narrowly suppress a Rust Doctor finding while keeping the decision reviewable.
Prefer fixing a finding or configuring an explicit project policy. Use an inline suppression when one source location intentionally violates a rule.
#Suppress the next line
// rust-doctor-disable-next-line unwrap-in-production
let value = known_present_value.unwrap();#Suppress the current line
let value = known_present_value.unwrap(); // rust-doctor-disable-line unwrap-in-productionThe rule ID is optional, but omitting it suppresses every Rust Doctor finding on the target line. Prefer the narrow rule-specific form so future diagnostics remain visible.
Inline directives apply only within the source file that contains them and do not cross workspace package boundaries. Rust Doctor also guards suppression reads to the scanned project root.
Use --no-respect-inline-disables to report findings hidden by inline
comments. Suppressed security findings remain available in verbose audit
metadata for machine consumers.