You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: many allow(dead_code) annotations may hide unused code #424
src/simlin-engine/src/ has about 40 #[allow(dead_code)] annotations.
Some are legitimate, but others hide code that is really unused in production or used only by tests.
Each should be resolved one of three ways:
used in production in a way the compiler cannot see: keep the allow, with a comment saying why;
used only by tests: replace with #[cfg(test)];
unused: delete it.
Examples
grep -rn 'allow(dead_code' src/simlin-engine/src/ lists them.
Likely candidates include get_var_loc in ast/mod.rs and ast/expr2.rs, the "used in pass 2" methods in ast/expr3.rs, units.rsconst_int_eval, ai_info.rsai_state_to_letter, datamodel.rsUnitMap::pretty_print, the unused fields in wasmgen/lower.rs and vdf/record_results.rs, and the whole compiler/expr.rsExpr enum (allowed at the type level, which can hide unused variants).
changed the title [-]engine: audit and clean up #[allow(dead_code)] annotations[/-][+]engine: many allow(dead_code) annotations may hide unused code[/+]on Oct 12, 2026
Activity
[-]engine: audit and clean up #[allow(dead_code)] annotations[/-][+]engine: many allow(dead_code) annotations may hide unused code[/+]