[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] building arafat1/cprocessor against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farafat1%2Fcprocessor" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/arafat1/cprocessor on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-0-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9757f27d3de1219ade768927098ce388f3decce219c4fae0a932d18c40fcdbc7 [INFO] running `Command { std: "docker" "start" "-a" "9757f27d3de1219ade768927098ce388f3decce219c4fae0a932d18c40fcdbc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9757f27d3de1219ade768927098ce388f3decce219c4fae0a932d18c40fcdbc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9757f27d3de1219ade768927098ce388f3decce219c4fae0a932d18c40fcdbc7", kill_on_drop: false }` [INFO] [stdout] 9757f27d3de1219ade768927098ce388f3decce219c4fae0a932d18c40fcdbc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd41c9667856dcbae9ba65456e9711b303ff4a724781f17c8f304fba9616e802 [INFO] running `Command { std: "docker" "start" "-a" "dd41c9667856dcbae9ba65456e9711b303ff4a724781f17c8f304fba9616e802", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling getrandom v0.1.15 [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` and `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: function `add_sub4` is never used [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add4` is never used [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 `compare8` is never used [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 `FullAdder` is never constructed [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 items `new` and `add` are never used [INFO] [stdout] --> src/circuit/full_adder.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl FullAdder { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> FullAdder { [INFO] [stdout] | ^^^ [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 `HalfAdder` is never constructed [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 items `new` and `add` are never used [INFO] [stdout] --> src/circuit/half_adder.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl HalfAdder { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> HalfAdder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn add(&mut self, input1: u8, input2: u8) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rise`, `Fall`, and `None` are never constructed [INFO] [stdout] --> src/clock.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Edge { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 8 | Rise, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Fall, [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] [INFO] [stdout] [INFO] [stdout] warning: struct `Clock` is never constructed [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 items `new`, `start`, and `stop` are never used [INFO] [stdout] --> src/clock.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Clock { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(edge_ct: u64, period: u64) -> Clock { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl SRNorLatch { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> SRNorLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn input(&mut self, r: u8, s: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl SRNandLatch { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> SRNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn input(&mut self, r: u8, s: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl DNandLatch { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new() -> DNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn input(&mut self, d: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl LevelClockedNandLatch { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 69 | pub fn new() -> LevelClockedNandLatch { [INFO] [stdout] | ^^^ [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 items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl LevelClockedDNandLatch { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 92 | pub fn new() -> LevelClockedDNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn input(&mut self, d: u8, clk: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Register4Bits` is never constructed [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 items `new` and `change_bit1` are never used [INFO] [stdout] --> src/memory/register.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Register4Bits { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Register4Bits { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn change_bit1(&mut self, bit1: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Register8Bits` is never constructed [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 items `new` and `change_bit1` are never used [INFO] [stdout] --> src/memory/register.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Register8Bits { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 35 | pub fn new() -> Register8Bits { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn change_bit1(&mut self, bit1: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.37s [INFO] running `Command { std: "docker" "inspect" "dd41c9667856dcbae9ba65456e9711b303ff4a724781f17c8f304fba9616e802", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd41c9667856dcbae9ba65456e9711b303ff4a724781f17c8f304fba9616e802", kill_on_drop: false }` [INFO] [stdout] dd41c9667856dcbae9ba65456e9711b303ff4a724781f17c8f304fba9616e802 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e93a7b121e62d7e54ae9c0f4750d25942f9f8cd594716bcdede7af4442c658e0 [INFO] running `Command { std: "docker" "start" "-a" "e93a7b121e62d7e54ae9c0f4750d25942f9f8cd594716bcdede7af4442c658e0", kill_on_drop: false }` [INFO] [stderr] Compiling cprocessor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BorrowMut` and `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: 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: function `add_sub4` is never used [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add4` is never used [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: method `stop` is never used [INFO] [stdout] --> src/clock.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Clock { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl DNandLatch { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new() -> DNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn input(&mut self, d: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl LevelClockedNandLatch { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 69 | pub fn new() -> LevelClockedNandLatch { [INFO] [stdout] | ^^^ [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 items `new` and `input` are never used [INFO] [stdout] --> src/memory/flip_flop.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl LevelClockedDNandLatch { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 92 | pub fn new() -> LevelClockedDNandLatch { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn input(&mut self, d: u8, clk: u8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Register4Bits` is never constructed [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 items `new` and `change_bit1` are never used [INFO] [stdout] --> src/memory/register.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Register4Bits { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Register4Bits { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn change_bit1(&mut self, bit1: u8) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "e93a7b121e62d7e54ae9c0f4750d25942f9f8cd594716bcdede7af4442c658e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e93a7b121e62d7e54ae9c0f4750d25942f9f8cd594716bcdede7af4442c658e0", kill_on_drop: false }` [INFO] [stdout] e93a7b121e62d7e54ae9c0f4750d25942f9f8cd594716bcdede7af4442c658e0