fix(function): gate test-only declaration appender behind cfg(test)

append_declaration is exercised only by unit tests; in the plain bin
target it tripped dead_code under CI's RUSTFLAGS --deny warnings.
This commit is contained in:
2026-08-26 13:50:44 -06:00
parent 404a45a311
commit 198c9f42df
+1
View File
@@ -693,6 +693,7 @@ impl Functions {
self.declarations.extend(jobs::job_function_declarations()); self.declarations.extend(jobs::job_function_declarations());
} }
#[cfg(test)]
pub fn append_declaration(&mut self, declaration: FunctionDeclaration) { pub fn append_declaration(&mut self, declaration: FunctionDeclaration) {
self.declarations.push(declaration); self.declarations.push(declaration);
} }