From d92b53b261433e946c144349298d079b14f1dbc1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 Nov 2024 08:09:33 -0800 Subject: [PATCH] Ensure module attributes are applied to all top-level modules. (#1091) 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 2002016f..d8a601db 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}