diff --git a/rust/ruby-rbs/build.rs b/rust/ruby-rbs/build.rs index 96170bcb1..d38bd0bd0 100644 --- a/rust/ruby-rbs/build.rs +++ b/rust/ruby-rbs/build.rs @@ -328,11 +328,10 @@ fn generate(config: &Config) -> Result<(), Box> { writeln!(file, "// Nodes to generate: {}", config.nodes.len())?; writeln!(file)?; - // TODO: Go through all of the nodes and generate the structs to back them up for node in &config.nodes { - writeln!(file, "#[allow(dead_code)]")?; // TODO: Remove this once all nodes that need parser are implemented writeln!(file, "#[derive(Debug)]")?; writeln!(file, "pub struct {} {{", node.rust_name)?; + writeln!(file, " #[allow(dead_code)]")?; writeln!(file, " parser: *mut rbs_parser_t,")?; writeln!( file,