move #![allow(dead_code)]

`#![allow(dead_code)]` should be in generated code, not at module
declaration.