From d6927628be1436e200cfa95de7c5b576329154d2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 19 Nov 2024 16:58:38 -0800 Subject: [PATCH] Ensure module attributes are applied to all top-level modules. Effectively revert #1089, and go back to putting `#[allow(dead_code)]` on all modules for now, because the code in #1089 didn't work for interfaces defined inline inside of worlds, which turn into top-level modules in the Rust bindings. --- crates/rust/src/interface.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rust/src/interface.rs b/crates/rust/src/interface.rs index 2002016f5..d8a601dbc 100644 --- a/crates/rust/src/interface.rs +++ b/crates/rust/src/interface.rs @@ -445,6 +445,7 @@ macro_rules! {macro_name} {{ let module = format!( "\ {docs} + #[allow(dead_code, clippy::all)] pub mod {snake} {{ {used_static} {module}