[INFO] cloning repository https://github.com/ShiroUsagi-san/yage [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ShiroUsagi-san/yage" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShiroUsagi-san%2Fyage", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShiroUsagi-san%2Fyage'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c36f89aad9581b59cd4fdb5a2f2f86a8dd8575dd [INFO] checking ShiroUsagi-san/yage against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShiroUsagi-san%2Fyage" "/workspace/builds/worker-25/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-25/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShiroUsagi-san/yage on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ShiroUsagi-san/yage [INFO] finished tweaking git repo https://github.com/ShiroUsagi-san/yage [INFO] tweaked toml for git repo https://github.com/ShiroUsagi-san/yage written to /workspace/builds/worker-25/source/Cargo.toml [INFO] crate git repo https://github.com/ShiroUsagi-san/yage already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a57fcc2b46867232c17e597b3ba6b9d34f53da4b38cb4fbf7a54c63506169d3c [INFO] running `Command { std: "docker" "start" "-a" "a57fcc2b46867232c17e597b3ba6b9d34f53da4b38cb4fbf7a54c63506169d3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a57fcc2b46867232c17e597b3ba6b9d34f53da4b38cb4fbf7a54c63506169d3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a57fcc2b46867232c17e597b3ba6b9d34f53da4b38cb4fbf7a54c63506169d3c", kill_on_drop: false }` [INFO] [stdout] a57fcc2b46867232c17e597b3ba6b9d34f53da4b38cb4fbf7a54c63506169d3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e24c62f9ca4303a991e97971a6b0844f66e7f28f15824e5e1fc9521ddf3b01c [INFO] running `Command { std: "docker" "start" "-a" "0e24c62f9ca4303a991e97971a6b0844f66e7f28f15824e5e1fc9521ddf3b01c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking yage v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/cpu/cpu.rs (1 fix) [INFO] [stderr] Fixed src/cpu/register.rs (4 fixes) [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/cpu/cpu.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MemoryBus` [INFO] [stdout] --> src/cpu/cpu.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct MemoryBus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_byte` [INFO] [stdout] --> src/cpu/cpu.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn read_byte(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/cpu/cpu.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step` [INFO] [stdout] --> src/cpu/cpu.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/cpu/cpu.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn execute(&mut self, ins: Instruction) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/cpu/cpu.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn add(&mut self, val: u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Instruction` [INFO] [stdout] --> src/cpu/instruction.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ExtendedTarget` [INFO] [stdout] --> src/cpu/instruction.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum ExtendedTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteTarget` [INFO] [stdout] --> src/cpu/instruction.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum LoadByteTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteSource` [INFO] [stdout] --> src/cpu/instruction.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum LoadByteSource { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadType` [INFO] [stdout] --> src/cpu/instruction.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum LoadType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpParameter` [INFO] [stdout] --> src/cpu/instruction.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum JumpParameter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ConditionnalTarget` [INFO] [stdout] --> src/cpu/instruction.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum ConditionnalTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ArithmeticTarget` [INFO] [stdout] --> src/cpu/instruction.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum ArithmeticTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `StackTarget` [INFO] [stdout] --> src/cpu/instruction.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum StackTarget { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpTest` [INFO] [stdout] --> src/cpu/instruction.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | pub enum JumpTest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/cpu/instruction.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn from_bytes(byte: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/register.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bc` [INFO] [stdout] --> src/cpu/register.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_bc(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bc` [INFO] [stdout] --> src/cpu/register.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn set_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_af` [INFO] [stdout] --> src/cpu/register.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_af(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_af` [INFO] [stdout] --> src/cpu/register.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn set_af(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_de` [INFO] [stdout] --> src/cpu/register.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_de(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_de` [INFO] [stdout] --> src/cpu/register.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn set_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hl` [INFO] [stdout] --> src/cpu/register.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn get_hl(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hl` [INFO] [stdout] --> src/cpu/register.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn set_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `or_patterns` has been stable since 1.53.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(or_patterns)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | writeln!(f, "{:b}", self.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | writeln!(f, "ZERO FLAG: {}", self.is_zero()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | writeln!(f, "SUBSTRACTION FLAG: {}", self.is_substraction()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | writeln!(f, "HALF CARRY FLAG: {}", self.is_half_carry()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/cpu/cpu.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MemoryBus` [INFO] [stdout] --> src/cpu/cpu.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct MemoryBus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_byte` [INFO] [stdout] --> src/cpu/cpu.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn read_byte(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/cpu/cpu.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step` [INFO] [stdout] --> src/cpu/cpu.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/cpu/cpu.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn execute(&mut self, ins: Instruction) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/cpu/cpu.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn add(&mut self, val: u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Instruction` [INFO] [stdout] --> src/cpu/instruction.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ExtendedTarget` [INFO] [stdout] --> src/cpu/instruction.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum ExtendedTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteTarget` [INFO] [stdout] --> src/cpu/instruction.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum LoadByteTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteSource` [INFO] [stdout] --> src/cpu/instruction.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum LoadByteSource { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadType` [INFO] [stdout] --> src/cpu/instruction.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum LoadType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpParameter` [INFO] [stdout] --> src/cpu/instruction.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum JumpParameter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ConditionnalTarget` [INFO] [stdout] --> src/cpu/instruction.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum ConditionnalTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ArithmeticTarget` [INFO] [stdout] --> src/cpu/instruction.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum ArithmeticTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `StackTarget` [INFO] [stdout] --> src/cpu/instruction.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum StackTarget { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpTest` [INFO] [stdout] --> src/cpu/instruction.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | pub enum JumpTest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/cpu/instruction.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn from_bytes(byte: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bc` [INFO] [stdout] --> src/cpu/register.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_bc(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bc` [INFO] [stdout] --> src/cpu/register.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn set_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_af` [INFO] [stdout] --> src/cpu/register.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_af(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_af` [INFO] [stdout] --> src/cpu/register.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn set_af(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_de` [INFO] [stdout] --> src/cpu/register.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_de(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_de` [INFO] [stdout] --> src/cpu/register.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn set_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hl` [INFO] [stdout] --> src/cpu/register.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn get_hl(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hl` [INFO] [stdout] --> src/cpu/register.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn set_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `or_patterns` has been stable since 1.53.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(or_patterns)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | writeln!(f, "{:b}", self.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | writeln!(f, "ZERO FLAG: {}", self.is_zero()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | writeln!(f, "SUBSTRACTION FLAG: {}", self.is_substraction()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | writeln!(f, "HALF CARRY FLAG: {}", self.is_half_carry()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.52s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking yage v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/cpu/cpu.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MemoryBus` [INFO] [stdout] --> src/cpu/cpu.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct MemoryBus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_byte` [INFO] [stdout] --> src/cpu/cpu.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn read_byte(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/cpu/cpu.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step` [INFO] [stdout] --> src/cpu/cpu.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/cpu/cpu.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn execute(&mut self, ins: Instruction) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/cpu/cpu.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn add(&mut self, val: u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Instruction` [INFO] [stdout] --> src/cpu/instruction.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ExtendedTarget` [INFO] [stdout] --> src/cpu/instruction.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum ExtendedTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteTarget` [INFO] [stdout] --> src/cpu/instruction.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum LoadByteTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteSource` [INFO] [stdout] --> src/cpu/instruction.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum LoadByteSource { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadType` [INFO] [stdout] --> src/cpu/instruction.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum LoadType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpParameter` [INFO] [stdout] --> src/cpu/instruction.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum JumpParameter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ConditionnalTarget` [INFO] [stdout] --> src/cpu/instruction.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum ConditionnalTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ArithmeticTarget` [INFO] [stdout] --> src/cpu/instruction.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum ArithmeticTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `StackTarget` [INFO] [stdout] --> src/cpu/instruction.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum StackTarget { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpTest` [INFO] [stdout] --> src/cpu/instruction.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | pub enum JumpTest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/cpu/instruction.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn from_bytes(byte: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/cpu/register.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bc` [INFO] [stdout] --> src/cpu/register.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_bc(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bc` [INFO] [stdout] --> src/cpu/register.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn set_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_af` [INFO] [stdout] --> src/cpu/register.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_af(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_af` [INFO] [stdout] --> src/cpu/register.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn set_af(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_de` [INFO] [stdout] --> src/cpu/register.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_de(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_de` [INFO] [stdout] --> src/cpu/register.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn set_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hl` [INFO] [stdout] --> src/cpu/register.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn get_hl(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hl` [INFO] [stdout] --> src/cpu/register.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn set_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `or_patterns` has been stable since 1.53.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(or_patterns)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | writeln!(f, "{:b}", self.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | writeln!(f, "ZERO FLAG: {}", self.is_zero()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | writeln!(f, "SUBSTRACTION FLAG: {}", self.is_substraction()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | writeln!(f, "HALF CARRY FLAG: {}", self.is_half_carry()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Cpu` [INFO] [stdout] --> src/cpu/cpu.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MemoryBus` [INFO] [stdout] --> src/cpu/cpu.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct MemoryBus { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read_byte` [INFO] [stdout] --> src/cpu/cpu.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn read_byte(&self, address: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/cpu/cpu.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `step` [INFO] [stdout] --> src/cpu/cpu.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> src/cpu/cpu.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn execute(&mut self, ins: Instruction) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/cpu/cpu.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn add(&mut self, val: u8) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Instruction` [INFO] [stdout] --> src/cpu/instruction.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ExtendedTarget` [INFO] [stdout] --> src/cpu/instruction.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum ExtendedTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteTarget` [INFO] [stdout] --> src/cpu/instruction.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum LoadByteTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadByteSource` [INFO] [stdout] --> src/cpu/instruction.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum LoadByteSource { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LoadType` [INFO] [stdout] --> src/cpu/instruction.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum LoadType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpParameter` [INFO] [stdout] --> src/cpu/instruction.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum JumpParameter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ConditionnalTarget` [INFO] [stdout] --> src/cpu/instruction.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum ConditionnalTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ArithmeticTarget` [INFO] [stdout] --> src/cpu/instruction.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum ArithmeticTarget { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `StackTarget` [INFO] [stdout] --> src/cpu/instruction.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | pub enum StackTarget { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `JumpTest` [INFO] [stdout] --> src/cpu/instruction.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | pub enum JumpTest { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/cpu/instruction.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn from_bytes(byte: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bc` [INFO] [stdout] --> src/cpu/register.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_bc(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_bc` [INFO] [stdout] --> src/cpu/register.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn set_bc(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_af` [INFO] [stdout] --> src/cpu/register.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn get_af(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_af` [INFO] [stdout] --> src/cpu/register.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn set_af(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_de` [INFO] [stdout] --> src/cpu/register.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_de(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_de` [INFO] [stdout] --> src/cpu/register.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn set_de(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hl` [INFO] [stdout] --> src/cpu/register.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn get_hl(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hl` [INFO] [stdout] --> src/cpu/register.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn set_hl(&mut self, value: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `or_patterns` has been stable since 1.53.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(or_patterns)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | writeln!(f, "{:b}", self.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | writeln!(f, "ZERO FLAG: {}", self.is_zero()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | writeln!(f, "SUBSTRACTION FLAG: {}", self.is_substraction()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu/register.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | writeln!(f, "HALF CARRY FLAG: {}", self.is_half_carry()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.46s [INFO] running `Command { std: "docker" "inspect" "0e24c62f9ca4303a991e97971a6b0844f66e7f28f15824e5e1fc9521ddf3b01c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e24c62f9ca4303a991e97971a6b0844f66e7f28f15824e5e1fc9521ddf3b01c", kill_on_drop: false }` [INFO] [stdout] 0e24c62f9ca4303a991e97971a6b0844f66e7f28f15824e5e1fc9521ddf3b01c