Skip to content

Commit 8de9f37

Browse files
committed
fix: add unused code allowance to multiple crates for cleaner compilation
1 parent 38b4ffe commit 8de9f37

14 files changed

Lines changed: 25 additions & 5 deletions

File tree

crates/compiler/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused, dead_code, deprecated)]
2+
13
//! # Zyntax Compiler Infrastructure
24
//!
35
//! This crate provides the compilation pipeline from TypedAST to executable code,

crates/haxe_zyntax_runtime/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused, dead_code, deprecated)]
2+
13
//! Haxe-specific Runtime for Zyntax
24
//!
35
//! This crate provides Haxe-specific runtime functions for the Zyntax compiler.

crates/runtime/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused, dead_code, deprecated)]
2+
13
//! Zyntax Runtime Library
24
//!
35
//! This library provides **language-agnostic** runtime primitives that can be used

crates/typed_ast/src/arena.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl ThreadSafeArenaManager {
313313
/// Get or create an arena for the current thread
314314
pub fn get_arena(
315315
&self,
316-
) -> std::sync::RwLockWriteGuard<HashMap<std::thread::ThreadId, AstArena>> {
316+
) -> std::sync::RwLockWriteGuard<'_, HashMap<std::thread::ThreadId, AstArena>> {
317317
let thread_id = std::thread::current().id();
318318
let mut arenas = self.arenas.write().unwrap();
319319

crates/typed_ast/src/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,12 +504,12 @@ impl DiagnosticCollector {
504504
}
505505

506506
/// Emit an error
507-
pub fn error(&mut self, message: impl Into<String>) -> DiagnosticBuilder {
507+
pub fn error(&mut self, message: impl Into<String>) -> DiagnosticBuilder<'_> {
508508
DiagnosticBuilder::new(self, Diagnostic::error(message))
509509
}
510510

511511
/// Emit a warning
512-
pub fn warning(&mut self, message: impl Into<String>) -> DiagnosticBuilder {
512+
pub fn warning(&mut self, message: impl Into<String>) -> DiagnosticBuilder<'_> {
513513
DiagnosticBuilder::new(self, Diagnostic::warning(message))
514514
}
515515

crates/typed_ast/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused, dead_code, deprecated)]
2+
13
//! # Zyntax TypedAST
24
//!
35
//! A robust TypedAST that serves as the common intermediate representation

crates/whirlwind_adapter/src/adapter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::symbol_extractor::SymbolExtractor;
77
use crate::type_converter::TypeConverter;
88
use crate::typed_expression_converter::TypedExpressionConverter;
99
use whirlwind_analyzer::Standpoint;
10-
use zyntax_typed_ast::{AstArena, Type, TypeRegistry, TypedProgram};
10+
use zyntax_typed_ast::{AstArena, TypeRegistry, TypedProgram};
1111

1212
/// The main adapter that converts Whirlwind's Standpoint IR to Zyntax's TypedAST
1313
///

crates/whirlwind_adapter/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused, dead_code, deprecated)]
2+
13
//! # Whirlwind to TypedAST Adapter
24
//!
35
//! This crate provides translation from Whirlwind's Standpoint IR to Zyntax's TypedAST.

crates/zyn_peg/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused, dead_code, deprecated)]
2+
13
//! ZynPEG: Parser Generator for Multi-Language Zyntax Frontends
24
//!
35
//! ZynPEG extends pest PEG syntax with TypedAST action blocks, enabling

crates/zynml/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused, dead_code, deprecated)]
2+
13
//! # ZynML - Machine Learning DSL for Zyntax
24
//!
35
//! ZynML is a domain-specific language for machine learning that provides:

0 commit comments

Comments
 (0)