Skip to main content

drop_phantom

Function drop_phantom 

Source
pub fn drop_phantom(report: &mut FleetReport) -> usize
Expand description

Drop occurrences known to be phantom — a Cargo.lock-only optional dependency that is never compiled (active: Some(false), from --resolve-features) — and remove any finding left with no occurrences. Recomputes summary counts. Returns the number of findings removed entirely. Occurrences with unknown build status (active: None) are always kept (fail-closed).