Skip to main content

inventory

Function inventory 

fn inventory(dir: &Path) -> Result<Counts, Error>
Expand description

Finds the hand-written unsafe operations under dir, and reports an inner #![allow(unsafe_code)] as an operation of its own so it cannot pass by being merely uncounted. Each AST operation is paired, in source order, with one local // SAFETY: comment block.