[INFO] cloning repository https://github.com/nashpotato/cpu-sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nashpotato/cpu-sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnashpotato%2Fcpu-sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnashpotato%2Fcpu-sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2920d27d7152369f17296b4d712ddc6d6f6cba97 [INFO] testing nashpotato/cpu-sim against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnashpotato%2Fcpu-sim" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nashpotato/cpu-sim on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nashpotato/cpu-sim [INFO] finished tweaking git repo https://github.com/nashpotato/cpu-sim [INFO] tweaked toml for git repo https://github.com/nashpotato/cpu-sim written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/nashpotato/cpu-sim already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded text_io v0.1.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7a1644a86dd0aac29f51411861e7bde62161ca0009b1e90c4637e6badec164d3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7a1644a86dd0aac29f51411861e7bde62161ca0009b1e90c4637e6badec164d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a1644a86dd0aac29f51411861e7bde62161ca0009b1e90c4637e6badec164d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a1644a86dd0aac29f51411861e7bde62161ca0009b1e90c4637e6badec164d3", kill_on_drop: false }` [INFO] [stdout] 7a1644a86dd0aac29f51411861e7bde62161ca0009b1e90c4637e6badec164d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a3ce1ed1d7bcae1f6bf724d58fc16d0318133040cc09fe58d89e718f0562895 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9a3ce1ed1d7bcae1f6bf724d58fc16d0318133040cc09fe58d89e718f0562895", kill_on_drop: false }` [INFO] [stderr] Compiling text_io v0.1.8 [INFO] [stderr] Compiling cpu-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/cpu/util.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | fn string_to_instr(op: &str)-> (fn(u32, u32) -> Instr){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - fn string_to_instr(op: &str)-> (fn(u32, u32) -> Instr){ [INFO] [stdout] 6 + fn string_to_instr(op: &str)-> fn(u32, u32) -> Instr{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/cpu/util.rs:18:36 [INFO] [stdout] | [INFO] [stdout] 18 | fn string_to_3arginstr(op: &str)-> (fn(u32, u32, u32) -> Instr){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - fn string_to_3arginstr(op: &str)-> (fn(u32, u32, u32) -> Instr){ [INFO] [stdout] 18 + fn string_to_3arginstr(op: &str)-> fn(u32, u32, u32) -> Instr{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flags` [INFO] [stdout] --> src/cpu/cpu.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | flags: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compare` [INFO] [stdout] --> src/cpu/cpu.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn compare(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.50s [INFO] running `Command { std: "docker" "inspect" "9a3ce1ed1d7bcae1f6bf724d58fc16d0318133040cc09fe58d89e718f0562895", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a3ce1ed1d7bcae1f6bf724d58fc16d0318133040cc09fe58d89e718f0562895", kill_on_drop: false }` [INFO] [stdout] 9a3ce1ed1d7bcae1f6bf724d58fc16d0318133040cc09fe58d89e718f0562895 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3bb3a6a503a18cec720f3dd4d55632781f8df1fc92da3445229077028d35dc6a [INFO] running `Command { std: "docker" "start" "-a" "3bb3a6a503a18cec720f3dd4d55632781f8df1fc92da3445229077028d35dc6a", kill_on_drop: false }` [INFO] [stderr] Compiling cpu-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/cpu/util.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | fn string_to_instr(op: &str)-> (fn(u32, u32) -> Instr){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - fn string_to_instr(op: &str)-> (fn(u32, u32) -> Instr){ [INFO] [stdout] 6 + fn string_to_instr(op: &str)-> fn(u32, u32) -> Instr{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/cpu/util.rs:18:36 [INFO] [stdout] | [INFO] [stdout] 18 | fn string_to_3arginstr(op: &str)-> (fn(u32, u32, u32) -> Instr){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - fn string_to_3arginstr(op: &str)-> (fn(u32, u32, u32) -> Instr){ [INFO] [stdout] 18 + fn string_to_3arginstr(op: &str)-> fn(u32, u32, u32) -> Instr{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flags` [INFO] [stdout] --> src/cpu/cpu.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | flags: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compare` [INFO] [stdout] --> src/cpu/cpu.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn compare(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | _ => panic!(format!("Failed to parse MOV instruction = {:?}", instr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 100 - _ => panic!(format!("Failed to parse MOV instruction = {:?}", instr)) [INFO] [stdout] 100 + _ => panic!("Failed to parse MOV instruction = {:?}", instr) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | _ => panic!(format!("Failed to parse MOVI instruction = {:?}", instr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 109 - _ => panic!(format!("Failed to parse MOVI instruction = {:?}", instr)) [INFO] [stdout] 109 + _ => panic!("Failed to parse MOVI instruction = {:?}", instr) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | _ => panic!(format!("Failed to parse ADDi instruction = {:?}", instr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 118 - _ => panic!(format!("Failed to parse ADDi instruction = {:?}", instr)) [INFO] [stdout] 118 + _ => panic!("Failed to parse ADDi instruction = {:?}", instr) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | _ => panic!(format!("Failed to parse SUBI instruction = {:?}", instr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 127 - _ => panic!(format!("Failed to parse SUBI instruction = {:?}", instr)) [INFO] [stdout] 127 + _ => panic!("Failed to parse SUBI instruction = {:?}", instr) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | _ => panic!(format!("Failed to parse ADD instruction = {:?}", instr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 136 - _ => panic!(format!("Failed to parse ADD instruction = {:?}", instr)) [INFO] [stdout] 136 + _ => panic!("Failed to parse ADD instruction = {:?}", instr) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:145:25 [INFO] [stdout] | [INFO] [stdout] 145 | _ => panic!(format!("Failed to parse ADDR instruction = {:?}", instr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 145 - _ => panic!(format!("Failed to parse ADDR instruction = {:?}", instr)) [INFO] [stdout] 145 + _ => panic!("Failed to parse ADDR instruction = {:?}", instr) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:154:25 [INFO] [stdout] | [INFO] [stdout] 154 | _ => panic!(format!("Failed to parse SUB instruction = {:?}", instr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 154 - _ => panic!(format!("Failed to parse SUB instruction = {:?}", instr)) [INFO] [stdout] 154 + _ => panic!("Failed to parse SUB instruction = {:?}", instr) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cpu/util.rs:190:30 [INFO] [stdout] | [INFO] [stdout] 190 | Err(e) => panic!(e.to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 190 | Err(e) => panic!("{}", e.to_string()), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.85s [INFO] running `Command { std: "docker" "inspect" "3bb3a6a503a18cec720f3dd4d55632781f8df1fc92da3445229077028d35dc6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bb3a6a503a18cec720f3dd4d55632781f8df1fc92da3445229077028d35dc6a", kill_on_drop: false }` [INFO] [stdout] 3bb3a6a503a18cec720f3dd4d55632781f8df1fc92da3445229077028d35dc6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 75a5cc4d76ff2dbfe0164d517cb7fc4dbe06a1be8cba5db51a11303a756fbeaa [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "75a5cc4d76ff2dbfe0164d517cb7fc4dbe06a1be8cba5db51a11303a756fbeaa", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/cpu/util.rs:6:32 [INFO] [stderr] | [INFO] [stderr] 6 | fn string_to_instr(op: &str)-> (fn(u32, u32) -> Instr){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 6 - fn string_to_instr(op: &str)-> (fn(u32, u32) -> Instr){ [INFO] [stderr] 6 + fn string_to_instr(op: &str)-> fn(u32, u32) -> Instr{ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/cpu/util.rs:18:36 [INFO] [stderr] | [INFO] [stderr] 18 | fn string_to_3arginstr(op: &str)-> (fn(u32, u32, u32) -> Instr){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 18 - fn string_to_3arginstr(op: &str)-> (fn(u32, u32, u32) -> Instr){ [INFO] [stderr] 18 + fn string_to_3arginstr(op: &str)-> fn(u32, u32, u32) -> Instr{ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field is never read: `flags` [INFO] [stderr] --> src/cpu/cpu.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | flags: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `compare` [INFO] [stderr] --> src/cpu/cpu.rs:107:8 [INFO] [stderr] | [INFO] [stderr] 107 | fn compare(&mut self) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:100:25 [INFO] [stderr] | [INFO] [stderr] 100 | _ => panic!(format!("Failed to parse MOV instruction = {:?}", instr)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 100 - _ => panic!(format!("Failed to parse MOV instruction = {:?}", instr)) [INFO] [stderr] 100 + _ => panic!("Failed to parse MOV instruction = {:?}", instr) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:109:25 [INFO] [stderr] | [INFO] [stderr] 109 | _ => panic!(format!("Failed to parse MOVI instruction = {:?}", instr)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 109 - _ => panic!(format!("Failed to parse MOVI instruction = {:?}", instr)) [INFO] [stderr] 109 + _ => panic!("Failed to parse MOVI instruction = {:?}", instr) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:118:25 [INFO] [stderr] | [INFO] [stderr] 118 | _ => panic!(format!("Failed to parse ADDi instruction = {:?}", instr)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 118 - _ => panic!(format!("Failed to parse ADDi instruction = {:?}", instr)) [INFO] [stderr] 118 + _ => panic!("Failed to parse ADDi instruction = {:?}", instr) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:127:25 [INFO] [stderr] | [INFO] [stderr] 127 | _ => panic!(format!("Failed to parse SUBI instruction = {:?}", instr)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 127 - _ => panic!(format!("Failed to parse SUBI instruction = {:?}", instr)) [INFO] [stderr] 127 + _ => panic!("Failed to parse SUBI instruction = {:?}", instr) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:136:25 [INFO] [stderr] | [INFO] [stderr] 136 | _ => panic!(format!("Failed to parse ADD instruction = {:?}", instr)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 136 - _ => panic!(format!("Failed to parse ADD instruction = {:?}", instr)) [INFO] [stderr] 136 + _ => panic!("Failed to parse ADD instruction = {:?}", instr) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:145:25 [INFO] [stderr] | [INFO] [stderr] 145 | _ => panic!(format!("Failed to parse ADDR instruction = {:?}", instr)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 145 - _ => panic!(format!("Failed to parse ADDR instruction = {:?}", instr)) [INFO] [stderr] 145 + _ => panic!("Failed to parse ADDR instruction = {:?}", instr) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:154:25 [INFO] [stderr] | [INFO] [stderr] 154 | _ => panic!(format!("Failed to parse SUB instruction = {:?}", instr)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 154 - _ => panic!(format!("Failed to parse SUB instruction = {:?}", instr)) [INFO] [stderr] 154 + _ => panic!("Failed to parse SUB instruction = {:?}", instr) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cpu/util.rs:190:30 [INFO] [stderr] | [INFO] [stderr] 190 | Err(e) => panic!(e.to_string()), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 190 | Err(e) => panic!("{}", e.to_string()), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: `cpu-sim` (bin "cpu-sim" test) generated 12 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/cpu_sim-c44e0151ad19e5a6) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test cpu::cpu::tests::addi_subi_tests ... ok [INFO] [stdout] test cpu::util::tests::parse_add ... ok [INFO] [stdout] test cpu::util::tests::parse_addi ... ok [INFO] [stdout] test cpu::util::tests::parse_addr ... ok [INFO] [stdout] test cpu::util::tests::parse_mov ... ok [INFO] [stdout] test cpu::util::tests::parse_src_file ... ok [INFO] [stdout] test cpu::util::tests::parse_sub ... ok [INFO] [stdout] test cpu::util::tests::parse_subi ... ok [INFO] [stdout] test cpu::util::tests::parse_subr ... ok [INFO] [stdout] test cpu::util::tests::parse_movi ... ok [INFO] [stdout] test cpu::cpu::tests::add_sub_tests ... ok [INFO] [stdout] test cpu::cpu::tests::mov_tests ... ok [INFO] [stdout] test cpu::util::tests::parse_cmp ... ok [INFO] [stdout] test cpu::util::tests::parse_cmpi ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "75a5cc4d76ff2dbfe0164d517cb7fc4dbe06a1be8cba5db51a11303a756fbeaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75a5cc4d76ff2dbfe0164d517cb7fc4dbe06a1be8cba5db51a11303a756fbeaa", kill_on_drop: false }` [INFO] [stdout] 75a5cc4d76ff2dbfe0164d517cb7fc4dbe06a1be8cba5db51a11303a756fbeaa