[INFO] cloning repository https://github.com/Aavtic/Alphera [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Aavtic/Alphera" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAavtic%2FAlphera", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAavtic%2FAlphera'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5269ee4b63c983fef74e0f902e0b8ea3cfd15748 [INFO] checking Aavtic/Alphera against 895980e0290783bb09b1ccf1b11f14eb09b10430 for pr-160186 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAavtic%2FAlphera" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Aavtic/Alphera [INFO] finished tweaking git repo https://github.com/Aavtic/Alphera [INFO] tweaked toml for git repo https://github.com/Aavtic/Alphera written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Aavtic/Alphera on toolchain 895980e0290783bb09b1ccf1b11f14eb09b10430 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Aavtic/Alphera already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2024 which implies `resolver = "3"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2024 resolver, specify `workspace.resolver = "3"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed [INFO] running `Command { std: "docker" "start" "fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed" "/opt/rustwide/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed" "/opt/rustwide/cargo-home/bin/cargo" "+895980e0290783bb09b1ccf1b11f14eb09b10430" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2024 which implies `resolver = "3"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2024 resolver, specify `workspace.resolver = "3"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Checking utils v0.1.0 (/opt/rustwide/workdir/crates/utils) [INFO] [stderr] Checking lexer v0.1.0 (/opt/rustwide/workdir/crates/lexer) [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling regex-lite v0.1.8 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Checking ast v0.1.0 (/opt/rustwide/workdir/crates/ast) [INFO] [stderr] Checking config v0.1.0 (/opt/rustwide/workdir/crates/config) [INFO] [stderr] Compiling libc v0.2.179 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/ast/src/ast.rs:546:25 [INFO] [stdout] | [INFO] [stdout] 546 | Expr::Unary{op, right} => "Unary", [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> crates/ast/src/ast.rs:546:29 [INFO] [stdout] | [INFO] [stdout] 546 | Expr::Unary{op, right} => "Unary", [INFO] [stdout] | ^^^^^ help: try ignoring the field: `right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> crates/ast/src/ast.rs:547:26 [INFO] [stdout] | [INFO] [stdout] 547 | Expr::Binary{left, op, right} => "Binary", [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/ast/src/ast.rs:547:32 [INFO] [stdout] | [INFO] [stdout] 547 | Expr::Binary{left, op, right} => "Binary", [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> crates/ast/src/ast.rs:547:36 [INFO] [stdout] | [INFO] [stdout] 547 | Expr::Binary{left, op, right} => "Binary", [INFO] [stdout] | ^^^^^ help: try ignoring the field: `right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `printer` [INFO] [stdout] --> crates/ast/src/ast.rs:632:21 [INFO] [stdout] | [INFO] [stdout] 632 | pub fn dump_dot(printer: &mut Printer, ast: Expr, parent: i32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_printer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> crates/ast/src/ast.rs:632:55 [INFO] [stdout] | [INFO] [stdout] 632 | pub fn dump_dot(printer: &mut Printer, ast: Expr, parent: i32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> crates/ast/src/ast.rs:532:8 [INFO] [stdout] | [INFO] [stdout] 531 | impl Literal { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 532 | fn as_string(self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> crates/ast/src/ast.rs:544:8 [INFO] [stdout] | [INFO] [stdout] 543 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 544 | fn as_str(self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_index` and `append_output` are never used [INFO] [stdout] --> crates/ast/src/ast.rs:619:12 [INFO] [stdout] | [INFO] [stdout] 588 | impl Printer { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 619 | fn next_index(&mut self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 624 | fn append_output(&mut self, index: i32, child_index: i32, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Checking is_terminal_polyfill v1.70.2 [INFO] [stderr] Checking anstyle-query v1.1.5 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking errors v0.1.0 (/opt/rustwide/workdir/crates/errors) [INFO] [stderr] Compiling inkwell v0.7.1 [INFO] [stderr] Checking clap_lex v0.7.6 [INFO] [stderr] Checking analyzer v0.1.0 (/opt/rustwide/workdir/crates/analyzer) [INFO] [stderr] Checking parser v0.1.0 (/opt/rustwide/workdir/crates/parser) [INFO] [stdout] warning: unused variable: `import_stmt` [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:402:31 [INFO] [stdout] | [INFO] [stdout] 402 | Statement::Import(import_stmt) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_import_stmt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:624:17 [INFO] [stdout] | [INFO] [stdout] 624 | callee, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NamespaceType` is never used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum NamespaceType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_imports` is never used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:800:8 [INFO] [stdout] | [INFO] [stdout] 799 | impl Analyzer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 800 | fn get_imports(&self) -> Imports { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_built_in` is never used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:809:4 [INFO] [stdout] | [INFO] [stdout] 809 | fn is_built_in(name: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `clone` that must be used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:680:29 [INFO] [stdout] | [INFO] [stdout] 680 | / ... err [INFO] [stdout] 681 | | ... .create_error() [INFO] [stdout] 682 | | ... .add_line(69) [INFO] [stdout] 683 | | ... .add_column(69) [INFO] [stdout] 684 | | ... .add_file_name(&self.module_name) [INFO] [stdout] 685 | | ... .add_package_name(&self.package_name) [INFO] [stdout] 686 | | ... .clone(); [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: cloning is often expensive and is not expected to have side effects [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 680 | let _ = err [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking clap_builder v4.5.51 [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> crates/parser/src/parser.rs:137:28 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn dump_ast(&self, ast: Vec, out_file: PathBuf) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> crates/parser/src/parser.rs:137:54 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn dump_ast(&self, ast: Vec, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ast` [INFO] [stdout] --> crates/parser/src/parser.rs:137:28 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn dump_ast(&self, ast: Vec, out_file: PathBuf) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> crates/parser/src/parser.rs:137:54 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn dump_ast(&self, ast: Vec, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `import_stmt` [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:402:31 [INFO] [stdout] | [INFO] [stdout] 402 | Statement::Import(import_stmt) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_import_stmt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `project_dir` is never read [INFO] [stdout] --> crates/parser/src/parser.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | project_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resolve_import_path` is never used [INFO] [stdout] --> crates/parser/src/parser.rs:1041:8 [INFO] [stdout] | [INFO] [stdout] 1040 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 1041 | fn resolve_import_path(&self, name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:624:17 [INFO] [stdout] | [INFO] [stdout] 624 | callee, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `NamespaceType` is never used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum NamespaceType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_imports` is never used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:800:8 [INFO] [stdout] | [INFO] [stdout] 799 | impl Analyzer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 800 | fn get_imports(&self) -> Imports { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_built_in` is never used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:809:4 [INFO] [stdout] | [INFO] [stdout] 809 | fn is_built_in(name: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `clone` that must be used [INFO] [stdout] --> crates/analyzer/src/analyzer.rs:680:29 [INFO] [stdout] | [INFO] [stdout] 680 | / ... err [INFO] [stdout] 681 | | ... .create_error() [INFO] [stdout] 682 | | ... .add_line(69) [INFO] [stdout] 683 | | ... .add_column(69) [INFO] [stdout] 684 | | ... .add_file_name(&self.module_name) [INFO] [stdout] 685 | | ... .add_package_name(&self.package_name) [INFO] [stdout] 686 | | ... .clone(); [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: cloning is often expensive and is not expected to have side effects [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 680 | let _ = err [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `project_dir` is never read [INFO] [stdout] --> crates/parser/src/parser.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Parser { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 54 | project_dir: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resolve_import_path` is never used [INFO] [stdout] --> crates/parser/src/parser.rs:1041:8 [INFO] [stdout] | [INFO] [stdout] 1040 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 1041 | fn resolve_import_path(&self, name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ir v0.1.0 (/opt/rustwide/workdir/crates/ir) [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/ast/src/ast.rs:546:25 [INFO] [stdout] | [INFO] [stdout] 546 | Expr::Unary{op, right} => "Unary", [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> crates/ast/src/ast.rs:546:29 [INFO] [stdout] | [INFO] [stdout] 546 | Expr::Unary{op, right} => "Unary", [INFO] [stdout] | ^^^^^ help: try ignoring the field: `right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> crates/ast/src/ast.rs:547:26 [INFO] [stdout] | [INFO] [stdout] 547 | Expr::Binary{left, op, right} => "Binary", [INFO] [stdout] | ^^^^ help: try ignoring the field: `left: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/ast/src/ast.rs:547:32 [INFO] [stdout] | [INFO] [stdout] 547 | Expr::Binary{left, op, right} => "Binary", [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> crates/ast/src/ast.rs:547:36 [INFO] [stdout] | [INFO] [stdout] 547 | Expr::Binary{left, op, right} => "Binary", [INFO] [stdout] | ^^^^^ help: try ignoring the field: `right: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `printer` [INFO] [stdout] --> crates/ast/src/ast.rs:632:21 [INFO] [stdout] | [INFO] [stdout] 632 | pub fn dump_dot(printer: &mut Printer, ast: Expr, parent: i32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_printer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> crates/ast/src/ast.rs:632:55 [INFO] [stdout] | [INFO] [stdout] 632 | pub fn dump_dot(printer: &mut Printer, ast: Expr, parent: i32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> crates/ast/src/ast.rs:532:8 [INFO] [stdout] | [INFO] [stdout] 531 | impl Literal { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 532 | fn as_string(self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> crates/ast/src/ast.rs:544:8 [INFO] [stdout] | [INFO] [stdout] 543 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 544 | fn as_str(self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_index` and `append_output` are never used [INFO] [stdout] --> crates/ast/src/ast.rs:619:12 [INFO] [stdout] | [INFO] [stdout] 588 | impl Printer { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 619 | fn next_index(&mut self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 624 | fn append_output(&mut self, index: i32, child_index: i32, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling llvm-sys v211.0.0 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling inkwell_internals v0.12.0 [INFO] [stderr] Checking clap v4.5.51 [INFO] [stderr] Checking test_analyzer v0.1.0 (/opt/rustwide/workdir/tests/test_analyzer) [INFO] [stderr] Checking parser_test v0.1.0 (/opt/rustwide/workdir/tests/parser) [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tests/parser/src/main.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tests/parser/src/main.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | fn build_analyze(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | fn build_llvm_ir(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | fn build_object(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | fn build_analyze(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:125:18 [INFO] [stdout] | [INFO] [stdout] 125 | fn build_llvm_ir(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | fn build_object(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | fn print_tokens(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:138:20 [INFO] [stdout] | [INFO] [stdout] 138 | fn compile_program(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | fn print_tokens(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/parser/src/main.rs:138:20 [INFO] [stdout] | [INFO] [stdout] 138 | fn compile_program(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | fn build_llvm_ir(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | fn build_object(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | fn print_tokens(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:162:20 [INFO] [stdout] | [INFO] [stdout] 162 | fn compile_program(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | fn build_llvm_ir(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | fn build_object(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | fn print_tokens(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_analyzer/src/main.rs:162:20 [INFO] [stdout] | [INFO] [stdout] 162 | fn compile_program(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking codegen v0.1.0 (/opt/rustwide/workdir/crates/codegen) [INFO] [stderr] Checking linker v0.1.0 (/opt/rustwide/workdir/crates/linker) [INFO] [stdout] warning: unused import: `process::Output` [INFO] [stdout] --> crates/linker/src/linker.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Error, process::Output}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntValue` [INFO] [stdout] --> crates/codegen/src/codegen.rs:27:76 [INFO] [stdout] | [INFO] [stdout] 27 | BasicMetadataValueEnum, BasicValue, BasicValueEnum, FunctionValue, IntValue, PointerValue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `process::Output` [INFO] [stdout] --> crates/linker/src/linker.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::Error, process::Output}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IntValue` [INFO] [stdout] --> crates/codegen/src/codegen.rs:27:76 [INFO] [stdout] | [INFO] [stdout] 27 | BasicMetadataValueEnum, BasicValue, BasicValueEnum, FunctionValue, IntValue, PointerValue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> crates/codegen/src/codegen.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | prefix: Option, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `importStmt` [INFO] [stdout] --> crates/codegen/src/codegen.rs:433:31 [INFO] [stdout] | [INFO] [stdout] 433 | Statement::Import(importStmt) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_importStmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1435:34 [INFO] [stdout] | [INFO] [stdout] 1435 | Expr::FunctionCall { callee, args, name } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1484:17 [INFO] [stdout] | [INFO] [stdout] 1484 | callee, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cgen_modules` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1807:39 [INFO] [stdout] | [INFO] [stdout] 1807 | pub fn get_all_imports(&mut self, cgen_modules: &mut CodeGenModules) {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cgen_modules` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datatype` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1893:30 [INFO] [stdout] | [INFO] [stdout] 1893 | fn get_basic_type(&self, datatype: DataType) -> BasicTypeEnum<'ctx> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_datatype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datatype` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1899:9 [INFO] [stdout] | [INFO] [stdout] 1899 | datatype: DataType, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_datatype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1900:9 [INFO] [stdout] | [INFO] [stdout] 1900 | arguments: &[BasicMetadataTypeEnum<'ctx>], [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_var_args` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1901:9 [INFO] [stdout] | [INFO] [stdout] 1901 | is_var_args: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_var_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_module` and `get_module` are never used [INFO] [stdout] --> crates/codegen/src/codegen.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'ctx> CodeGenModules<'ctx> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | fn insert_module(&mut self, name: &str, codegen: CodeGen<'ctx>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_module(&self, name: &str) -> Option<&CodeGen<'ctx>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_basic_type` and `get_fn_type` are never used [INFO] [stdout] --> crates/codegen/src/codegen.rs:1893:8 [INFO] [stdout] | [INFO] [stdout] 1891 | impl<'ctx> CodeGen<'ctx> { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 1892 | #[inline] [INFO] [stdout] 1893 | fn get_basic_type(&self, datatype: DataType) -> BasicTypeEnum<'ctx> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1897 | fn get_fn_type( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_runtime_function` and `get_runtime_abi_name` are never used [INFO] [stdout] --> crates/codegen/src/codegen.rs:1936:8 [INFO] [stdout] | [INFO] [stdout] 1923 | impl<'ctx> CodeGen<'ctx> { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1936 | fn is_runtime_function(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1940 | fn get_runtime_abi_name(&self, name: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `importStmt` should have a snake case name [INFO] [stdout] --> crates/codegen/src/codegen.rs:433:31 [INFO] [stdout] | [INFO] [stdout] 433 | Statement::Import(importStmt) => { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `import_stmt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prefix` [INFO] [stdout] --> crates/codegen/src/codegen.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | prefix: Option, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `importStmt` [INFO] [stdout] --> crates/codegen/src/codegen.rs:433:31 [INFO] [stdout] | [INFO] [stdout] 433 | Statement::Import(importStmt) => { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_importStmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pinec v0.1.0 (/opt/rustwide/workdir/tools/pinec) [INFO] [stderr] Checking test_codegen v0.1.0 (/opt/rustwide/workdir/tests/test_codegen) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tools/pinec/src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut parser = Parser::new(tokens, parent); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tools/pinec/src/main.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> tools/pinec/src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut parser = Parser::new(tokens, parent); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1435:34 [INFO] [stdout] | [INFO] [stdout] 1435 | Expr::FunctionCall { callee, args, name } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1484:17 [INFO] [stdout] | [INFO] [stdout] 1484 | callee, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cgen_modules` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1807:39 [INFO] [stdout] | [INFO] [stdout] 1807 | pub fn get_all_imports(&mut self, cgen_modules: &mut CodeGenModules) {} [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cgen_modules` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datatype` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1893:30 [INFO] [stdout] | [INFO] [stdout] 1893 | fn get_basic_type(&self, datatype: DataType) -> BasicTypeEnum<'ctx> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_datatype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datatype` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1899:9 [INFO] [stdout] | [INFO] [stdout] 1899 | datatype: DataType, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_datatype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1900:9 [INFO] [stdout] | [INFO] [stdout] 1900 | arguments: &[BasicMetadataTypeEnum<'ctx>], [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_var_args` [INFO] [stdout] --> crates/codegen/src/codegen.rs:1901:9 [INFO] [stdout] | [INFO] [stdout] 1901 | is_var_args: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_var_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_module` and `get_module` are never used [INFO] [stdout] --> crates/codegen/src/codegen.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl<'ctx> CodeGenModules<'ctx> { [INFO] [stdout] | ------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | fn insert_module(&mut self, name: &str, codegen: CodeGen<'ctx>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn get_module(&self, name: &str) -> Option<&CodeGen<'ctx>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_basic_type` and `get_fn_type` are never used [INFO] [stdout] --> crates/codegen/src/codegen.rs:1893:8 [INFO] [stdout] | [INFO] [stdout] 1891 | impl<'ctx> CodeGen<'ctx> { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 1892 | #[inline] [INFO] [stdout] 1893 | fn get_basic_type(&self, datatype: DataType) -> BasicTypeEnum<'ctx> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1897 | fn get_fn_type( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_runtime_function` and `get_runtime_abi_name` are never used [INFO] [stdout] --> crates/codegen/src/codegen.rs:1936:8 [INFO] [stdout] | [INFO] [stdout] 1923 | impl<'ctx> CodeGen<'ctx> { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1936 | fn is_runtime_function(&self, name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1940 | fn get_runtime_abi_name(&self, name: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `importStmt` should have a snake case name [INFO] [stdout] --> crates/codegen/src/codegen.rs:433:31 [INFO] [stdout] | [INFO] [stdout] 433 | Statement::Import(importStmt) => { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `import_stmt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tools/pinec/src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut parser = Parser::new(tokens, parent); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tools/pinec/src/main.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> tools/pinec/src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut parser = Parser::new(tokens, parent); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tests/test_codegen/src/main.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_name` [INFO] [stdout] --> tests/test_codegen/src/main.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | let module_name = file_name [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_codegen/src/main.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | fn print_tokens(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_file` [INFO] [stdout] --> tests/test_codegen/src/main.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | fn _print_ast_to_dot(source_path: PathBuf, out_file: PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_name` [INFO] [stdout] --> tests/test_codegen/src/main.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | let module_name = file_name [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> tests/test_codegen/src/main.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | fn print_tokens(file: PathBuf) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.34s [INFO] running `Command { std: "docker" "inspect" "fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed", kill_on_drop: false }` [INFO] [stdout] fe756067c0dd4e0e8c681292caf07272897b1a099da445abe7ebf3bc517d57ed