This lint was triggering on modules inside expanded attrs, like for example `#[cfg(test)]` and possibly more.
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498