allow dead code rust for entire file code example Example: ignore #[warn(dead_code)] #[allow(dead_code)] fn dead() {}