[INFO] cloning repository https://github.com/arafat1/cprocessor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/arafat1/cprocessor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farafat1%2Fcprocessor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farafat1%2Fcprocessor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06342718afbd0442cf3eb9cf0c302e49b8d4381d [INFO] testing arafat1/cprocessor against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farafat1%2Fcprocessor" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/arafat1/cprocessor 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/arafat1/cprocessor [INFO] finished tweaking git repo https://github.com/arafat1/cprocessor [INFO] tweaked toml for git repo https://github.com/arafat1/cprocessor written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/arafat1/cprocessor 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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1324ab0a97564cddccbded35158820bfb768137c7655b27fd05bea5d1bb7adb7 [INFO] running `Command { std: "docker" "start" "-a" "1324ab0a97564cddccbded35158820bfb768137c7655b27fd05bea5d1bb7adb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1324ab0a97564cddccbded35158820bfb768137c7655b27fd05bea5d1bb7adb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1324ab0a97564cddccbded35158820bfb768137c7655b27fd05bea5d1bb7adb7", kill_on_drop: false }` [INFO] [stdout] 1324ab0a97564cddccbded35158820bfb768137c7655b27fd05bea5d1bb7adb7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2114f077c2f5d371077bbdff68fac6d527899a49eb1d1703fcdeca7c12606d01 [INFO] running `Command { std: "docker" "start" "-a" "2114f077c2f5d371077bbdff68fac6d527899a49eb1d1703fcdeca7c12606d01", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling cprocessor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/clock.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mpsc` [INFO] [stdout] --> src/clock.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `xor2` [INFO] [stdout] --> src/memory/flip_flop.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::gate::logic_gates::{nand2, nor2, xor2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/memory/flip_flop.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/circuit/adder_subtractor.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut s3 = FullAdder::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/clock.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 60 | let mut level = c_level.lock().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rise` [INFO] [stdout] --> src/clock.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Rise, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/clock.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialOrd, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Fall` [INFO] [stdout] --> src/clock.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Fall, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/clock.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialOrd, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/clock.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Edge` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/clock.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialOrd, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Clock` [INFO] [stdout] --> src/clock.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Clock { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/clock.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(edge_ct: u64, period: u64) -> Clock { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start` [INFO] [stdout] --> src/clock.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop` [INFO] [stdout] --> src/clock.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_sub4` [INFO] [stdout] --> src/circuit/adder_subtractor.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn add_sub4(r1: &Register4Bits, r2: &Register4Bits, sub: u8) -> Register4Bits { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add4` [INFO] [stdout] --> src/circuit/binary_adder.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn add4(r1: &Register4Bits, r2: &Register4Bits) -> Register4Bits { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compare8` [INFO] [stdout] --> src/circuit/comparator.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn compare8(r1: &Register8Bits, r2: &Register8Bits) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FullAdder` [INFO] [stdout] --> src/circuit/full_adder.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FullAdder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/circuit/full_adder.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new() -> FullAdder { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/circuit/full_adder.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn add(&mut self, input1: u8, input2: u8, carry: u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HalfAdder` [INFO] [stdout] --> src/circuit/half_adder.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HalfAdder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/circuit/half_adder.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new() -> HalfAdder { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/circuit/half_adder.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn add(&mut self, input1: u8, input2: u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> SRNorLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn input(&mut self, r: u8, s: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new() -> SRNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn input(&mut self, r: u8, s: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new() -> DNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn input(&mut self, d: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new() -> LevelClockedNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn input(&mut self, r: u8, s: u8, clk: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn new() -> LevelClockedDNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn input(&mut self, d: u8, clk: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Register4Bits` [INFO] [stdout] --> src/memory/register.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Register4Bits { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/register.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new() -> Register4Bits { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `change_bit1` [INFO] [stdout] --> src/memory/register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn change_bit1(&mut self, bit1: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Register8Bits` [INFO] [stdout] --> src/memory/register.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Register8Bits { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/register.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new() -> Register8Bits { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `change_bit1` [INFO] [stdout] --> src/memory/register.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn change_bit1(&mut self, bit1: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.13s [INFO] running `Command { std: "docker" "inspect" "2114f077c2f5d371077bbdff68fac6d527899a49eb1d1703fcdeca7c12606d01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2114f077c2f5d371077bbdff68fac6d527899a49eb1d1703fcdeca7c12606d01", kill_on_drop: false }` [INFO] [stdout] 2114f077c2f5d371077bbdff68fac6d527899a49eb1d1703fcdeca7c12606d01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 002f3ecb6349c60ce74f5570a3063c083705dbd8257ed5e176888e1bb3348b22 [INFO] running `Command { std: "docker" "start" "-a" "002f3ecb6349c60ce74f5570a3063c083705dbd8257ed5e176888e1bb3348b22", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling cprocessor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/clock.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mpsc` [INFO] [stdout] --> src/clock.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `xor2` [INFO] [stdout] --> src/memory/flip_flop.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::gate::logic_gates::{nand2, nor2, xor2}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/memory/flip_flop.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/clock.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | for i in 1..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/circuit/adder_subtractor.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut s3 = FullAdder::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/clock.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 60 | let mut level = c_level.lock().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop` [INFO] [stdout] --> src/clock.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_sub4` [INFO] [stdout] --> src/circuit/adder_subtractor.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn add_sub4(r1: &Register4Bits, r2: &Register4Bits, sub: u8) -> Register4Bits { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add4` [INFO] [stdout] --> src/circuit/binary_adder.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn add4(r1: &Register4Bits, r2: &Register4Bits) -> Register4Bits { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn new() -> DNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn input(&mut self, d: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new() -> LevelClockedNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn input(&mut self, r: u8, s: u8, clk: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/flip_flop.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn new() -> LevelClockedDNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/memory/flip_flop.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn input(&mut self, d: u8, clk: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Register4Bits` [INFO] [stdout] --> src/memory/register.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Register4Bits { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory/register.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new() -> Register4Bits { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `change_bit1` [INFO] [stdout] --> src/memory/register.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn change_bit1(&mut self, bit1: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.08s [INFO] running `Command { std: "docker" "inspect" "002f3ecb6349c60ce74f5570a3063c083705dbd8257ed5e176888e1bb3348b22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "002f3ecb6349c60ce74f5570a3063c083705dbd8257ed5e176888e1bb3348b22", kill_on_drop: false }` [INFO] [stdout] 002f3ecb6349c60ce74f5570a3063c083705dbd8257ed5e176888e1bb3348b22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2431f9d5721f5e5d2e9436f9b4cd8d6c6db4e9d26c286ac4e2f79e0b3456b683 [INFO] running `Command { std: "docker" "start" "-a" "2431f9d5721f5e5d2e9436f9b4cd8d6c6db4e9d26c286ac4e2f79e0b3456b683", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] [INFO] [stderr] --> src/clock.rs:1:19 [INFO] [stdout] running 43 tests [INFO] [stderr] | [INFO] [stderr] 1 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `mpsc` [INFO] [stderr] --> src/clock.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `xor2` [INFO] [stderr] --> src/memory/flip_flop.rs:1:45 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::gate::logic_gates::{nand2, nor2, xor2}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::prelude::*` [INFO] [stderr] --> src/memory/flip_flop.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use rand::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/clock.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | for i in 1..10 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/circuit/adder_subtractor.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | let mut s3 = FullAdder::new(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/clock.rs:60:21 [INFO] [stderr] | [INFO] [stderr] 60 | let mut level = c_level.lock().unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `stop` [INFO] [stderr] --> src/clock.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn stop(&mut self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_sub4` [INFO] [stderr] --> src/circuit/adder_subtractor.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn add_sub4(r1: &Register4Bits, r2: &Register4Bits, sub: u8) -> Register4Bits { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add4` [INFO] [stderr] --> src/circuit/binary_adder.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn add4(r1: &Register4Bits, r2: &Register4Bits) -> Register4Bits { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/memory/flip_flop.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn new() -> DNandLatch { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `input` [INFO] [stderr] --> src/memory/flip_flop.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn input(&mut self, d: u8) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/memory/flip_flop.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn new() -> LevelClockedNandLatch { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `input` [INFO] [stderr] --> src/memory/flip_flop.rs:73:12 [INFO] [stderr] | [INFO] [stderr] 73 | pub fn input(&mut self, r: u8, s: u8, clk: u8) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/memory/flip_flop.rs:92:12 [INFO] [stderr] | [INFO] [stderr] 92 | pub fn new() -> LevelClockedDNandLatch { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `input` [INFO] [stderr] --> src/memory/flip_flop.rs:96:12 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn input(&mut self, d: u8, clk: u8) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Register4Bits` [INFO] [stderr] --> src/memory/register.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct Register4Bits { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/memory/register.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn new() -> Register4Bits { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `change_bit1` [INFO] [stderr] --> src/memory/register.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn change_bit1(&mut self, bit1: u8) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `cprocessor` (bin "cprocessor" test) generated 19 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/cprocessor-56102cd27a82948b) [INFO] [stdout] test circuit::comparator::tests::compare_equal ... ok [INFO] [stdout] test circuit::comparator::tests::compare_not_equal ... ok [INFO] [stdout] test circuit::full_adder::tests::add_0_0_0 ... ok [INFO] [stdout] test circuit::full_adder::tests::add_0_0_1 ... ok [INFO] [stdout] test circuit::full_adder::tests::add_0_1_1 ... ok [INFO] [stdout] test circuit::full_adder::tests::add_1_1_1 ... ok [INFO] [stdout] test circuit::half_adder::tests::add_0_0 ... ok [INFO] [stdout] test circuit::half_adder::tests::add_0_1 ... ok [INFO] [stdout] test circuit::half_adder::tests::add_1_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::and2_input_0_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::and2_input_1_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::and2_input_1_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::and_input_0_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::nand2_input_0_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::nand2_input_0_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::nand2_input_1_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::nand2_input_1_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::nor2_input_0_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::nor2_input_0_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::nor2_input_1_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::nor2_input_1_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::not_input_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::not_input_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::or2_input_0_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::or2_input_0_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::or2_input_1_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::or2_input_1_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::xor2_input_0_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::xor2_input_0_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::xor2_input_1_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::xor2_input_1_1 ... ok [INFO] [stdout] test gate::logic_gates::tests::xor3_input_1_0_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::xor3_input_1_1_0 ... ok [INFO] [stdout] test gate::logic_gates::tests::xor3_input_1_1_1 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nand_nochange_1_1 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nand_race_0_0 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nand_reset_1_0 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nand_set_0_1 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nor_nochange_0_0 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nor_race_1_1 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nor_reset_1_0 ... ok [INFO] [stdout] test memory::flip_flop::tests::rs_nor_set_0_1 ... ok [INFO] [stdout] test clock::tests::rs_nor_nochange_0_0 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 43 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.98s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2431f9d5721f5e5d2e9436f9b4cd8d6c6db4e9d26c286ac4e2f79e0b3456b683", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2431f9d5721f5e5d2e9436f9b4cd8d6c6db4e9d26c286ac4e2f79e0b3456b683", kill_on_drop: false }` [INFO] [stdout] 2431f9d5721f5e5d2e9436f9b4cd8d6c6db4e9d26c286ac4e2f79e0b3456b683