[INFO] cloning repository https://github.com/shoham-z/vm2hack-nand2tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shoham-z/vm2hack-nand2tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoham-z%2Fvm2hack-nand2tetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoham-z%2Fvm2hack-nand2tetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 34a3cb084bba99023a6b94e55231478ad1af3636 [INFO] checking shoham-z/vm2hack-nand2tetris against master#ba412a6e70ac84641be7764d088acabd0eb3fa39 for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshoham-z%2Fvm2hack-nand2tetris" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/shoham-z/vm2hack-nand2tetris [INFO] finished tweaking git repo https://github.com/shoham-z/vm2hack-nand2tetris [INFO] tweaked toml for git repo https://github.com/shoham-z/vm2hack-nand2tetris written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shoham-z/vm2hack-nand2tetris on toolchain ba412a6e70ac84641be7764d088acabd0eb3fa39 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shoham-z/vm2hack-nand2tetris 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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4d4ddb3807142addeb0ed70e99263b21587a474330d1a6aea285476195eab4d0 [INFO] running `Command { std: "docker" "start" "-a" "4d4ddb3807142addeb0ed70e99263b21587a474330d1a6aea285476195eab4d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4d4ddb3807142addeb0ed70e99263b21587a474330d1a6aea285476195eab4d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d4ddb3807142addeb0ed70e99263b21587a474330d1a6aea285476195eab4d0", kill_on_drop: false }` [INFO] [stdout] 4d4ddb3807142addeb0ed70e99263b21587a474330d1a6aea285476195eab4d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 218b35cdee61a3dea1664ee7bac116bbd6f4a6976828fef43ca66c085c0acf05 [INFO] running `Command { std: "docker" "start" "-a" "218b35cdee61a3dea1664ee7bac116bbd6f4a6976828fef43ca66c085c0acf05", kill_on_drop: false }` [INFO] [stderr] Checking vm2hack v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `STATIC_BASE` [INFO] [stdout] --> src/stack.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{FILE_NAME, STATIC_BASE, TEMP_BASE}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/function_call.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FILE_NAME` [INFO] [stdout] --> src/function_call.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{FILE_NAME, FUNC_LABEL_NUM, push}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `STATIC_BASE` [INFO] [stdout] --> src/stack.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{FILE_NAME, STATIC_BASE, TEMP_BASE}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/function_call.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FILE_NAME` [INFO] [stdout] --> src/function_call.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{FILE_NAME, FUNC_LABEL_NUM, push}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STATIC_BASE` is never used [INFO] [stdout] --> src/constants.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub static STATIC_BASE: i64 = 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THAT` is never used [INFO] [stdout] --> src/constants.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub static THAT: &str = "THAT"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THIS` is never used [INFO] [stdout] --> src/constants.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub static THIS: &str = "THIS"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ARGUMENT` is never used [INFO] [stdout] --> src/constants.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static ARGUMENT: &str = "ARG"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOCAL` is never used [INFO] [stdout] --> src/constants.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub static LOCAL: &str = "LCL"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ARTH_JUMP_FLAG` is never used [INFO] [stdout] --> src/constants.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | pub static mut ARTH_JUMP_FLAG: i64 = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | write!(asm_file, "@256\nD=A\n@SP\nM=D\n{}", sys_init()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = write!(asm_file, "@256\nD=A\n@SP\nM=D\n{}", sys_init()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | write!(asm_file, "//{}\n\n{}\n\n",line, parse(line.to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = write!(asm_file, "//{}\n\n{}\n\n",line, parse(line.to_string())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_FILE_NAME` should have a snake case name [INFO] [stdout] --> src/main.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | unsafe fn update_FILE_NAME(ptr: *const u8, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/arithmetic.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let label_num = LABEL_NUM.to_string().to_owned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/function_call.rs:6:56 [INFO] [stdout] | [INFO] [stdout] 6 | return "@".to_string() + func + ".ReturnAddress" + FUNC_LABEL_NUM.to_string().as_str() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/function_call.rs:15:42 [INFO] [stdout] | [INFO] [stdout] 15 | "(" + func + ".ReturnAddress" + FUNC_LABEL_NUM.to_string().as_str() + ")\n" // label return-address [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `STATIC_BASE` is never used [INFO] [stdout] --> src/constants.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub static STATIC_BASE: i64 = 5; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THAT` is never used [INFO] [stdout] --> src/constants.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub static THAT: &str = "THAT"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `THIS` is never used [INFO] [stdout] --> src/constants.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub static THIS: &str = "THIS"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ARGUMENT` is never used [INFO] [stdout] --> src/constants.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub static ARGUMENT: &str = "ARG"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOCAL` is never used [INFO] [stdout] --> src/constants.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub static LOCAL: &str = "LCL"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ARTH_JUMP_FLAG` is never used [INFO] [stdout] --> src/constants.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | pub static mut ARTH_JUMP_FLAG: i64 = -1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | write!(asm_file, "@256\nD=A\n@SP\nM=D\n{}", sys_init()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = write!(asm_file, "@256\nD=A\n@SP\nM=D\n{}", sys_init()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | write!(asm_file, "//{}\n\n{}\n\n",line, parse(line.to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = write!(asm_file, "//{}\n\n{}\n\n",line, parse(line.to_string())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_FILE_NAME` should have a snake case name [INFO] [stdout] --> src/main.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | unsafe fn update_FILE_NAME(ptr: *const u8, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/arithmetic.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | let label_num = LABEL_NUM.to_string().to_owned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/function_call.rs:6:56 [INFO] [stdout] | [INFO] [stdout] 6 | return "@".to_string() + func + ".ReturnAddress" + FUNC_LABEL_NUM.to_string().as_str() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/function_call.rs:15:42 [INFO] [stdout] | [INFO] [stdout] 15 | "(" + func + ".ReturnAddress" + FUNC_LABEL_NUM.to_string().as_str() + ")\n" // label return-address [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "218b35cdee61a3dea1664ee7bac116bbd6f4a6976828fef43ca66c085c0acf05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "218b35cdee61a3dea1664ee7bac116bbd6f4a6976828fef43ca66c085c0acf05", kill_on_drop: false }` [INFO] [stdout] 218b35cdee61a3dea1664ee7bac116bbd6f4a6976828fef43ca66c085c0acf05