Skip to content

Commit 979f7fa

Browse files
committed
ci: enable workspace lints across all Cargo.toml files
1 parent 37480e5 commit 979f7fa

49 files changed

Lines changed: 153 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@ regex = "1.11.1"
3232
uuid = { version = "1.10.0", features = ["v4", "serde"] }
3333
miette = "7.2.0"
3434
typed-arena = "2.0.2"
35-
string-interner = "0.17.0"
35+
string-interner = "0.17.0"
36+
37+
[workspace.lints.rust]
38+
warnings = "allow"
39+
40+
[workspace.lints.clippy]
41+
all = "allow"

archive/zyn_parser/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ zyntax_compiler = { path = "../compiler" }
2727
# [[bench]]
2828
# name = "parser_benchmarks"
2929
# harness = false
30+
31+
[lints]
32+
workspace = true

crates/compiler/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ default = ["cranelift-backend"]
7171
cranelift-backend = ["cranelift", "cranelift-codegen", "cranelift-frontend", "cranelift-jit", "cranelift-module", "cranelift-native"]
7272
llvm-backend = ["inkwell"]
7373
all-backends = ["cranelift-backend", "llvm-backend"]
74+
75+
[lints]
76+
workspace = true

crates/haxe_zyntax_runtime/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ libc = "0.2"
1515
zyntax_compiler = { path = "../compiler" }
1616
zyntax_plugin_macros = { path = "../zyntax_plugin_macros" }
1717
inventory = "0.3"
18+
19+
[lints]
20+
workspace = true

crates/runtime/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ libc = "0.2"
1111
zyntax_compiler = { path = "../compiler" }
1212
zyntax_plugin_macros = { path = "../zyntax_plugin_macros" }
1313
inventory = "0.3"
14+
15+
[lints]
16+
workspace = true

crates/typed_ast/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ operator_traits = [] # Enable built-in operator traits (Add, Sub, Mul, etc.)
3232

3333
[[example]]
3434
name = "generics_demo"
35-
path = "examples/generics_demo.rs"
35+
path = "examples/generics_demo.rs"
36+
[lints]
37+
workspace = true

crates/whirlwind_adapter/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ thiserror = "1.0"
2020
[dev-dependencies]
2121
# For testing
2222
pretty_assertions = "1.4"
23+
24+
[lints]
25+
workspace = true

crates/whirlwind_adapter/src/typed_expression_converter.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,12 @@ impl TypedExpressionConverter {
877877
| BinaryOp::Gt
878878
| BinaryOp::Ge => Type::Primitive(zyntax_typed_ast::PrimitiveType::Bool),
879879
// Arithmetic operators return the type of operands (if both are same)
880-
BinaryOp::Add | BinaryOp::Sub | BinaryOp::Mul | BinaryOp::Div | BinaryOp::Rem => {
880+
BinaryOp::Add
881+
| BinaryOp::Sub
882+
| BinaryOp::Mul
883+
| BinaryOp::MatMul
884+
| BinaryOp::Div
885+
| BinaryOp::Rem => {
881886
// If both operands have the same type, use that type
882887
if left.ty == right.ty {
883888
left.ty.clone()

crates/zyn_peg/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ regex = "1.10"
4242
# Dynamic grammar loading for runtime tests
4343
pest_vm = "2.8"
4444
pest_meta = "2.8"
45+
46+
[lints]
47+
workspace = true

crates/zyn_peg/integration_test/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ zyntax_compiler = { path = "../../compiler" }
1919

2020
[dev-dependencies]
2121
# None needed - tests are in the crate itself
22+
23+
[lints]
24+
workspace = true

0 commit comments

Comments
 (0)