[INFO] cloning repository https://github.com/babblet/HackCompiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/babblet/HackCompiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbabblet%2FHackCompiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbabblet%2FHackCompiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed7eee26e2e678c04f8307e57b45692822f56887 [INFO] testing babblet/HackCompiler against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbabblet%2FHackCompiler" "/workspace/builds/worker-71/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-71/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/babblet/HackCompiler on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/babblet/HackCompiler [INFO] finished tweaking git repo https://github.com/babblet/HackCompiler [INFO] tweaked toml for git repo https://github.com/babblet/HackCompiler written to /workspace/builds/worker-71/source/Cargo.toml [INFO] crate git repo https://github.com/babblet/HackCompiler already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 10205f66a6281aa53fb6e4364c74ed79a79bb5f850d82521a47b3d7b55b0ed0f [INFO] running `Command { std: "docker" "start" "-a" "10205f66a6281aa53fb6e4364c74ed79a79bb5f850d82521a47b3d7b55b0ed0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "10205f66a6281aa53fb6e4364c74ed79a79bb5f850d82521a47b3d7b55b0ed0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10205f66a6281aa53fb6e4364c74ed79a79bb5f850d82521a47b3d7b55b0ed0f", kill_on_drop: false }` [INFO] [stdout] 10205f66a6281aa53fb6e4364c74ed79a79bb5f850d82521a47b3d7b55b0ed0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ab4b821b70a8d221435c86976a6be52b7d47c54f8a5053e61299bdc045d7ecf [INFO] running `Command { std: "docker" "start" "-a" "3ab4b821b70a8d221435c86976a6be52b7d47c54f8a5053e61299bdc045d7ecf", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling hack_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/models/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsString` [INFO] [stdout] --> src/models/token.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ffi::OsString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/classes/tokenizer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> src/classes/tokenizer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/classes/compilation_engine.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let file_name = match input.file_name() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/classes/compilation_engine.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(input: &Path, output: &Path) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input_lines` [INFO] [stdout] --> src/classes/compilation_engine.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | input_lines: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `output_buffer` [INFO] [stdout] --> src/classes/compilation_engine.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | output_buffer: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/classes/compilation_engine.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | fn run(self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_class` [INFO] [stdout] --> src/classes/compilation_engine.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | fn compile_class() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_class_var_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | fn compile_class_var_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_subroutine_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | fn compile_subroutine_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_parameter_list` [INFO] [stdout] --> src/classes/compilation_engine.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | fn compile_parameter_list() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_subroutine_body` [INFO] [stdout] --> src/classes/compilation_engine.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | fn compile_subroutine_body() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_var_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | fn compile_var_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_statements` [INFO] [stdout] --> src/classes/compilation_engine.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | fn compile_statements() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_let` [INFO] [stdout] --> src/classes/compilation_engine.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 68 | fn compile_let() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_if` [INFO] [stdout] --> src/classes/compilation_engine.rs:72:6 [INFO] [stdout] | [INFO] [stdout] 72 | fn compile_if () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_while` [INFO] [stdout] --> src/classes/compilation_engine.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_while () { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_do` [INFO] [stdout] --> src/classes/compilation_engine.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | fn compile_do() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_return` [INFO] [stdout] --> src/classes/compilation_engine.rs:84:6 [INFO] [stdout] | [INFO] [stdout] 84 | fn compile_return() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_expression` [INFO] [stdout] --> src/classes/compilation_engine.rs:88:6 [INFO] [stdout] | [INFO] [stdout] 88 | fn compile_expression() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_term` [INFO] [stdout] --> src/classes/compilation_engine.rs:92:6 [INFO] [stdout] | [INFO] [stdout] 92 | fn compile_term() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_expression_list` [INFO] [stdout] --> src/classes/compilation_engine.rs:96:6 [INFO] [stdout] | [INFO] [stdout] 96 | fn compile_expression_list() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getKindArray` should have a snake case name [INFO] [stdout] --> src/grammar/mod.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn getKindArray() -> [Keyword; 21] { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_kind_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::classes::compilation_engine::CompilationEngine` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use hack_compiler::classes::compilation_engine::CompilationEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.50s [INFO] running `Command { std: "docker" "inspect" "3ab4b821b70a8d221435c86976a6be52b7d47c54f8a5053e61299bdc045d7ecf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ab4b821b70a8d221435c86976a6be52b7d47c54f8a5053e61299bdc045d7ecf", kill_on_drop: false }` [INFO] [stdout] 3ab4b821b70a8d221435c86976a6be52b7d47c54f8a5053e61299bdc045d7ecf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e34f505c4e64398a921d787cfd520e7f77ef40ad91ce7c6d6fce0128d93663c0 [INFO] running `Command { std: "docker" "start" "-a" "e34f505c4e64398a921d787cfd520e7f77ef40ad91ce7c6d6fce0128d93663c0", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/models/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsString` [INFO] [stdout] --> src/models/token.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ffi::OsString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/classes/tokenizer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> src/classes/tokenizer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/classes/compilation_engine.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let file_name = match input.file_name() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/classes/compilation_engine.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(input: &Path, output: &Path) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input_lines` [INFO] [stdout] --> src/classes/compilation_engine.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | input_lines: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `output_buffer` [INFO] [stdout] --> src/classes/compilation_engine.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | output_buffer: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/classes/compilation_engine.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | fn run(self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_class` [INFO] [stdout] --> src/classes/compilation_engine.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | fn compile_class() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_class_var_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | fn compile_class_var_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_subroutine_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | fn compile_subroutine_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_parameter_list` [INFO] [stdout] --> src/classes/compilation_engine.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | fn compile_parameter_list() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_subroutine_body` [INFO] [stdout] --> src/classes/compilation_engine.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | fn compile_subroutine_body() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_var_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | fn compile_var_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_statements` [INFO] [stdout] --> src/classes/compilation_engine.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | fn compile_statements() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hack_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function is never used: `compile_let` [INFO] [stdout] --> src/classes/compilation_engine.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 68 | fn compile_let() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_if` [INFO] [stdout] --> src/classes/compilation_engine.rs:72:6 [INFO] [stdout] | [INFO] [stdout] 72 | fn compile_if () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_while` [INFO] [stdout] --> src/classes/compilation_engine.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_while () { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_do` [INFO] [stdout] --> src/classes/compilation_engine.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | fn compile_do() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_return` [INFO] [stdout] --> src/classes/compilation_engine.rs:84:6 [INFO] [stdout] | [INFO] [stdout] 84 | fn compile_return() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_expression` [INFO] [stdout] --> src/classes/compilation_engine.rs:88:6 [INFO] [stdout] | [INFO] [stdout] 88 | fn compile_expression() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_term` [INFO] [stdout] --> src/classes/compilation_engine.rs:92:6 [INFO] [stdout] | [INFO] [stdout] 92 | fn compile_term() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_expression_list` [INFO] [stdout] --> src/classes/compilation_engine.rs:96:6 [INFO] [stdout] | [INFO] [stdout] 96 | fn compile_expression_list() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getKindArray` should have a snake case name [INFO] [stdout] --> src/grammar/mod.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn getKindArray() -> [Keyword; 21] { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_kind_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::classes::compilation_engine::CompilationEngine` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use hack_compiler::classes::compilation_engine::CompilationEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::classes::compilation_engine::CompilationEngine` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use hack_compiler::classes::compilation_engine::CompilationEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/models/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsString` [INFO] [stdout] --> src/models/token.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ffi::OsString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/classes/tokenizer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> src/classes/tokenizer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::classes::analyzer::SyntaxAnalyzer` [INFO] [stdout] --> tests/analyzer/mod.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | use hack_compiler::classes::analyzer::SyntaxAnalyzer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::classes::arguments::Arguments` [INFO] [stdout] --> tests/arguments/mod.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | use hack_compiler::classes::arguments::Arguments; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::classes::compilation_engine::CompilationEngine` [INFO] [stdout] --> tests/compilation_engine/mod.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | use hack_compiler::classes::compilation_engine::CompilationEngine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::OsString` [INFO] [stdout] --> tests/tokenizer/mod.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::grammar::LexicalElement` [INFO] [stdout] --> tests/tokenizer/mod.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | use hack_compiler::grammar::LexicalElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hack_compiler::grammar::Keyword` [INFO] [stdout] --> tests/tokenizer/mod.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | use hack_compiler::grammar::Keyword; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/classes/compilation_engine.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let file_name = match input.file_name() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/classes/compilation_engine.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(input: &Path, output: &Path) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input_lines` [INFO] [stdout] --> src/classes/compilation_engine.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | input_lines: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `output_buffer` [INFO] [stdout] --> src/classes/compilation_engine.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | output_buffer: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/classes/compilation_engine.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | fn run(self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_class` [INFO] [stdout] --> src/classes/compilation_engine.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | fn compile_class() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_class_var_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | fn compile_class_var_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_subroutine_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | fn compile_subroutine_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_parameter_list` [INFO] [stdout] --> src/classes/compilation_engine.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | fn compile_parameter_list() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_subroutine_body` [INFO] [stdout] --> src/classes/compilation_engine.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | fn compile_subroutine_body() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_var_dec` [INFO] [stdout] --> src/classes/compilation_engine.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | fn compile_var_dec() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_statements` [INFO] [stdout] --> src/classes/compilation_engine.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 64 | fn compile_statements() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_let` [INFO] [stdout] --> src/classes/compilation_engine.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 68 | fn compile_let() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_if` [INFO] [stdout] --> src/classes/compilation_engine.rs:72:6 [INFO] [stdout] | [INFO] [stdout] 72 | fn compile_if () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_while` [INFO] [stdout] --> src/classes/compilation_engine.rs:76:6 [INFO] [stdout] | [INFO] [stdout] 76 | fn compile_while () { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_do` [INFO] [stdout] --> src/classes/compilation_engine.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | fn compile_do() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_return` [INFO] [stdout] --> src/classes/compilation_engine.rs:84:6 [INFO] [stdout] | [INFO] [stdout] 84 | fn compile_return() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_expression` [INFO] [stdout] --> src/classes/compilation_engine.rs:88:6 [INFO] [stdout] | [INFO] [stdout] 88 | fn compile_expression() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_term` [INFO] [stdout] --> src/classes/compilation_engine.rs:92:6 [INFO] [stdout] | [INFO] [stdout] 92 | fn compile_term() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compile_expression_list` [INFO] [stdout] --> src/classes/compilation_engine.rs:96:6 [INFO] [stdout] | [INFO] [stdout] 96 | fn compile_expression_list() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getKindArray` should have a snake case name [INFO] [stdout] --> src/grammar/mod.rs:130:10 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn getKindArray() -> [Keyword; 21] { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_kind_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.67s [INFO] running `Command { std: "docker" "inspect" "e34f505c4e64398a921d787cfd520e7f77ef40ad91ce7c6d6fce0128d93663c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e34f505c4e64398a921d787cfd520e7f77ef40ad91ce7c6d6fce0128d93663c0", kill_on_drop: false }` [INFO] [stdout] e34f505c4e64398a921d787cfd520e7f77ef40ad91ce7c6d6fce0128d93663c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7a39b4cdfb112eceae5f95c54087f887c7eb6e220d8301790a2e9fd86d198a3c [INFO] running `Command { std: "docker" "start" "-a" "7a39b4cdfb112eceae5f95c54087f887c7eb6e220d8301790a2e9fd86d198a3c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/models/token.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ffi::OsString` [INFO] [stderr] --> src/models/token.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ffi::OsString; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::slice::Iter` [INFO] [stderr] --> src/classes/tokenizer.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::slice::Iter; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::Chars` [INFO] [stderr] --> src/classes/tokenizer.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::str::Chars; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_name` [INFO] [stderr] --> src/classes/compilation_engine.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | let file_name = match input.file_name() { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `output` [INFO] [stderr] --> src/classes/compilation_engine.rs:12:28 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn new(input: &Path, output: &Path) -> Result { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `input_lines` [INFO] [stderr] --> src/classes/compilation_engine.rs:7:3 [INFO] [stderr] | [INFO] [stderr] 7 | input_lines: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `output_buffer` [INFO] [stderr] --> src/classes/compilation_engine.rs:8:3 [INFO] [stderr] | [INFO] [stderr] 8 | output_buffer: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run` [INFO] [stderr] --> src/classes/compilation_engine.rs:37:6 [INFO] [stderr] | [INFO] [stderr] 37 | fn run(self) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_class` [INFO] [stderr] --> src/classes/compilation_engine.rs:40:6 [INFO] [stderr] | [INFO] [stderr] 40 | fn compile_class() { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_class_var_dec` [INFO] [stderr] --> src/classes/compilation_engine.rs:44:6 [INFO] [stderr] | [INFO] [stderr] 44 | fn compile_class_var_dec() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_subroutine_dec` [INFO] [stderr] --> src/classes/compilation_engine.rs:48:6 [INFO] [stderr] | [INFO] [stderr] 48 | fn compile_subroutine_dec() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_parameter_list` [INFO] [stderr] --> src/classes/compilation_engine.rs:52:6 [INFO] [stderr] | [INFO] [stderr] 52 | fn compile_parameter_list() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_subroutine_body` [INFO] [stderr] --> src/classes/compilation_engine.rs:56:6 [INFO] [stderr] | [INFO] [stderr] 56 | fn compile_subroutine_body() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_var_dec` [INFO] [stderr] --> src/classes/compilation_engine.rs:60:6 [INFO] [stderr] | [INFO] [stderr] 60 | fn compile_var_dec() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_statements` [INFO] [stderr] --> src/classes/compilation_engine.rs:64:6 [INFO] [stderr] | [INFO] [stderr] 64 | fn compile_statements() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_let` [INFO] [stderr] --> src/classes/compilation_engine.rs:68:6 [INFO] [stderr] | [INFO] [stderr] 68 | fn compile_let() { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_if` [INFO] [stderr] --> src/classes/compilation_engine.rs:72:6 [INFO] [stderr] | [INFO] [stderr] 72 | fn compile_if () { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_while` [INFO] [stderr] --> src/classes/compilation_engine.rs:76:6 [INFO] [stderr] | [INFO] [stderr] 76 | fn compile_while () { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_do` [INFO] [stderr] --> src/classes/compilation_engine.rs:80:6 [INFO] [stderr] | [INFO] [stderr] 80 | fn compile_do() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_return` [INFO] [stderr] --> src/classes/compilation_engine.rs:84:6 [INFO] [stderr] | [INFO] [stderr] 84 | fn compile_return() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_expression` [INFO] [stderr] --> src/classes/compilation_engine.rs:88:6 [INFO] [stderr] | [INFO] [stderr] 88 | fn compile_expression() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_term` [INFO] [stderr] --> src/classes/compilation_engine.rs:92:6 [INFO] [stderr] | [INFO] [stderr] 92 | fn compile_term() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compile_expression_list` [INFO] [stderr] --> src/classes/compilation_engine.rs:96:6 [INFO] [stderr] | [INFO] [stderr] 96 | fn compile_expression_list() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `getKindArray` should have a snake case name [INFO] [stderr] --> src/grammar/mod.rs:130:10 [INFO] [stderr] | [INFO] [stderr] 130 | pub fn getKindArray() -> [Keyword; 21] { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_kind_array` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `hack_compiler` (lib) generated 25 warnings [INFO] [stderr] warning: `hack_compiler` (lib test) generated 25 warnings (25 duplicates) [INFO] [stderr] warning: unused import: `hack_compiler::classes::compilation_engine::CompilationEngine` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use hack_compiler::classes::compilation_engine::CompilationEngine; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `hack_compiler` (bin "hack_compiler") generated 1 warning [INFO] [stderr] warning: `hack_compiler` (bin "hack_compiler" test) generated 1 warning (1 duplicate) [INFO] [stderr] warning: unused import: `hack_compiler::classes::analyzer::SyntaxAnalyzer` [INFO] [stderr] --> tests/analyzer/mod.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | use hack_compiler::classes::analyzer::SyntaxAnalyzer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `hack_compiler::classes::arguments::Arguments` [INFO] [stderr] --> tests/arguments/mod.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | use hack_compiler::classes::arguments::Arguments; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `hack_compiler::classes::compilation_engine::CompilationEngine` [INFO] [stderr] --> tests/compilation_engine/mod.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | use hack_compiler::classes::compilation_engine::CompilationEngine; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ffi::OsString` [INFO] [stderr] --> tests/tokenizer/mod.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | use std::ffi::OsString; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `hack_compiler::grammar::LexicalElement` [INFO] [stderr] --> tests/tokenizer/mod.rs:5:7 [INFO] [stderr] | [INFO] [stderr] 5 | use hack_compiler::grammar::LexicalElement; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `hack_compiler::grammar::Keyword` [INFO] [stderr] --> tests/tokenizer/mod.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 7 | use hack_compiler::grammar::Keyword; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `hack_compiler` (test "mod") generated 6 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.55s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/hack_compiler-22dbf9de5cb9bef1) [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/hack_compiler-cc022589b6aecff5) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/mod.rs (/opt/rustwide/target/debug/deps/mod-021d9cce4abaaea6) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test analyzer::analyzer::new ... ok [INFO] [stdout] test compilation_engine::compilation_engine::new ... ok [INFO] [stdout] test arguments::arguments::new ... ok [INFO] [stdout] test tokenizer::tokenizer::test_find_constant ... ok [INFO] [stdout] test tokenizer::tokenizer::test_is_integer_constant ... ok [INFO] [stdout] test tokenizer::tokenizer::test_create_token ... ok [INFO] [stdout] test tokenizer::tokenizer::test_find_keyword ... ok [INFO] [stdout] test tokenizer::tokenizer::test_is_symbol ... ok [INFO] [stdout] test tokenizer::tokenizer::test_is_whitespace ... ok [INFO] [stdout] test tokenizer::tokenizer::test_is_string_constant ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests hack_compiler [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7a39b4cdfb112eceae5f95c54087f887c7eb6e220d8301790a2e9fd86d198a3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a39b4cdfb112eceae5f95c54087f887c7eb6e220d8301790a2e9fd86d198a3c", kill_on_drop: false }` [INFO] [stdout] 7a39b4cdfb112eceae5f95c54087f887c7eb6e220d8301790a2e9fd86d198a3c