From c2db62c181d9e2797c7953c1a65293ce7c167ea9 Mon Sep 17 00:00:00 2001 From: Alex Rocha Date: Fri, 19 Dec 2025 17:34:21 -0800 Subject: [PATCH] Remove TODO comments from rust crate Some nodes don't use their parser field, but conditionally omitting it adds significant complexity. Keep parser on all nodes and suppress the warning on the parser field. --- rust/ruby-rbs/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,