[INFO] cloning repository https://github.com/zachross015/mixal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zachross015/mixal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachross015%2Fmixal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachross015%2Fmixal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d310cebf15fd308a547e8be19594b03a7cf167af [INFO] testing zachross015/mixal against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzachross015%2Fmixal" "/workspace/builds/worker-47/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-47/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zachross015/mixal 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/zachross015/mixal [INFO] finished tweaking git repo https://github.com/zachross015/mixal [INFO] tweaked toml for git repo https://github.com/zachross015/mixal written to /workspace/builds/worker-47/source/Cargo.toml [INFO] crate git repo https://github.com/zachross015/mixal 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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] d76f2ff4fc6cf5f43df7c23dba577235e521d273ab810ee155ecda82d871255b [INFO] running `Command { std: "docker" "start" "-a" "d76f2ff4fc6cf5f43df7c23dba577235e521d273ab810ee155ecda82d871255b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d76f2ff4fc6cf5f43df7c23dba577235e521d273ab810ee155ecda82d871255b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d76f2ff4fc6cf5f43df7c23dba577235e521d273ab810ee155ecda82d871255b", kill_on_drop: false }` [INFO] [stdout] d76f2ff4fc6cf5f43df7c23dba577235e521d273ab810ee155ecda82d871255b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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] b27b23cb01b68c658d781177c994c0c35fc649d187863f234118c55fe1d7e7f5 [INFO] running `Command { std: "docker" "start" "-a" "b27b23cb01b68c658d781177c994c0c35fc649d187863f234118c55fe1d7e7f5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling log v0.4.11 [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 mixal v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `less` should have an upper camel case name [INFO] [stdout] --> src/computer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | less, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Less` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `equal` should have an upper camel case name [INFO] [stdout] --> src/computer.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | equal, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `greater` should have an upper camel case name [INFO] [stdout] --> src/computer.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | greater [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::computer::Computer` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::computer::Computer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `address` [INFO] [stdout] --> src/word.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn address(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `index` [INFO] [stdout] --> src/word.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn index(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `field` [INFO] [stdout] --> src/word.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn field(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode` [INFO] [stdout] --> src/word.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/computer.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn new(mem: [Word; 4000], start: usize) -> Computer { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `default` [INFO] [stdout] --> src/computer.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn default() -> Computer { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fetch` [INFO] [stdout] --> src/computer.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn fetch(self) -> Word { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_index` [INFO] [stdout] --> src/computer.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn decode_index(&mut self, index: &u8) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_field` [INFO] [stdout] --> src/computer.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn decode_field(&self, field: &u8) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/computer.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn decode(&mut self, instruction: &Word) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/computer.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> $i { $i {} } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | create_instruction!(NoOperation, (self, _c) {}); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> $i { $i {} } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | create_instruction!(Halt, (self, computer) { computer.pc = 4000; }); [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / create_instruction!(LoadA, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stdout] 64 | | let ra = &mut computer.ra; [INFO] [stdout] 65 | | let mem = &computer.memory[self.address]; [INFO] [stdout] 66 | | copy_word_fields(mem, ra, self.field_specification); [INFO] [stdout] 67 | | if self.negative { ra.positive = !ra.positive; } [INFO] [stdout] 68 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | / create_instruction!(LoadX, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stdout] 71 | | let rx = &mut computer.rx; [INFO] [stdout] 72 | | let mem = &computer.memory[self.address]; [INFO] [stdout] 73 | | copy_word_fields(mem, rx, self.field_specification); [INFO] [stdout] 74 | | if self.negative { rx.positive = !rx.positive; } [INFO] [stdout] 75 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | / create_instruction!(LoadI, index: u8, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stdout] 78 | | let mem = &computer.memory[self.address].clone(); [INFO] [stdout] 79 | | let ri = register_for_index(computer, self.index); [INFO] [stdout] 80 | | copy_word_fields_i(mem, ri, self.field_specification); [INFO] [stdout] 81 | | if self.negative { ri.positive = !ri.positive; } [INFO] [stdout] 82 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | / create_instruction!(StoreA, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 85 | | store_operation(&computer.ra, &mut computer.memory[self.address], self.field_specification); [INFO] [stdout] 86 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | / create_instruction!(StoreX, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 89 | | store_operation(&computer.rx, &mut computer.memory[self.address], self.field_specification); [INFO] [stdout] 90 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | / create_instruction!(StoreI, index: u8, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 93 | | let ri = register_for_index(computer, self.index); [INFO] [stdout] 94 | | let reg_clone = ri.clone(); [INFO] [stdout] 95 | | store_operation( [INFO] [stdout] ... | [INFO] [stdout] 99 | | ); [INFO] [stdout] 100 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | / create_instruction!(StoreJ, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 103 | | store_operation(&computer.rj, &mut computer.memory[self.address], self.field_specification); [INFO] [stdout] 104 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | / create_instruction!(StoreZ, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 107 | | let zero = Word::default(); [INFO] [stdout] 108 | | store_operation(&zero, &mut computer.memory[self.address], self.field_specification); [INFO] [stdout] 109 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | / create_instruction!(Add, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 112 | | let (value, overflow) = add_words(&computer.ra, &computer.memory[self.address], self.field_specification); [INFO] [stdout] 113 | | copy_word_fields(&value, &mut computer.ra, self.field_specification); [INFO] [stdout] 114 | | computer.overflow_flag = overflow; [INFO] [stdout] 115 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | / create_instruction!(Sub, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 118 | | let (value, overflow) = add_words(&computer.ra, &computer.memory[self.address].negate(), self.field_specification); [INFO] [stdout] 119 | | copy_word_fields(&value, &mut computer.ra, self.field_specification); [INFO] [stdout] 120 | | computer.overflow_flag = overflow; [INFO] [stdout] 121 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | / create_instruction!(Mult, address: usize, field_specification: (usize, usize) , (self, computer) { [INFO] [stdout] 124 | | let (lower_value, upper_value) = multiply_words(&computer.ra, &computer.memory[self.address].negate(), self.field_specification); [INFO] [stdout] 125 | | copy_word_fields(&lower_value, &mut computer.rx, (0,5)); [INFO] [stdout] 126 | | copy_word_fields(&upper_value, &mut computer.ra, (0,5)); [INFO] [stdout] 127 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | / create_instruction!(Div, address: usize, field_specification: (usize, usize) , (self, computer) { [INFO] [stdout] 130 | | let (dividend, remainder, overflow) = divide_words(&computer.ra, &computer.rx, &computer.memory[self.address].negate(), self.field_sp... [INFO] [stdout] 131 | | copy_word_fields(&remainder, &mut computer.rx, (0,5)); [INFO] [stdout] 132 | | copy_word_fields(÷nd, &mut computer.ra, (0,5)); [INFO] [stdout] 133 | | computer.overflow_flag = overflow; [INFO] [stdout] 134 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | / create_instruction!(EntA, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 137 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 138 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 139 | | copy_word_fields(&word, &mut computer.ra, (0, 5)); [INFO] [stdout] 140 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | / create_instruction!(EntX, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 143 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 144 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 145 | | copy_word_fields(&word, &mut computer.rx, (0, 5)); [INFO] [stdout] 146 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | / create_instruction!(EntI, index: u8, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 149 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 150 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 151 | | let mut ri = register_for_index(computer, self.index); [INFO] [stdout] 152 | | copy_word_fields_i(&word, &mut ri, (0,5)); [INFO] [stdout] 153 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | / create_instruction!(IncA, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 156 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 157 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 158 | | let (value, overflow) = add_words(&computer.ra, &word, (0,5)); [INFO] [stdout] 159 | | copy_word_fields(&value, &mut computer.ra, (0, 5)); [INFO] [stdout] 160 | | computer.overflow_flag = overflow; [INFO] [stdout] 161 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | / create_instruction!(IncX, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 164 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 165 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 166 | | let (value, overflow) = add_words(&computer.rx, &word, (0,5)); [INFO] [stdout] 167 | | copy_word_fields(&value, &mut computer.rx, (0, 5)); [INFO] [stdout] 168 | | computer.overflow_flag = overflow; [INFO] [stdout] 169 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | / create_instruction!(IncI, index: u8, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 172 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 173 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 174 | | let mut ri = register_for_index(computer, self.index); [INFO] [stdout] ... | [INFO] [stdout] 177 | | computer.overflow_flag = overflow; [INFO] [stdout] 178 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | / create_instruction!(CmpA, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 181 | | let result = compare_words(&computer.ra, &computer.memory[self.address], self.field_specification); [INFO] [stdout] 182 | | computer.comparison_flag = result; [INFO] [stdout] 183 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | / create_instruction!(CmpX, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 186 | | let result = compare_words(&computer.rx, &computer.memory[self.address], self.field_specification); [INFO] [stdout] 187 | | computer.comparison_flag = result; [INFO] [stdout] 188 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | / create_instruction!(CmpI, index: u8, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 191 | | let mem = computer.memory[self.address].clone(); [INFO] [stdout] 192 | | let ri = register_for_index(computer, self.index); [INFO] [stdout] 193 | | let result = compare_words(&ri, &mem, self.field_specification); [INFO] [stdout] 194 | | computer.comparison_flag = result; [INFO] [stdout] 195 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | / create_instruction!(Jmp, address: usize, save_address: bool, (self, computer) { [INFO] [stdout] 198 | | if self.save_address { [INFO] [stdout] 199 | | save_jump(computer); [INFO] [stdout] 200 | | } [INFO] [stdout] 201 | | computer.pc = self.address; [INFO] [stdout] 202 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | / create_instruction!(JmpO, address: usize, should_negate: bool, (self, computer) { [INFO] [stdout] 205 | | if computer.overflow_flag.clone() != self.should_negate { [INFO] [stdout] 206 | | save_jump(computer); [INFO] [stdout] 207 | | computer.pc = self.address; [INFO] [stdout] 208 | | } [INFO] [stdout] 209 | | computer.overflow_flag = false; [INFO] [stdout] 210 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | / create_instruction!(JmpC, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 225 | | let condition = condition_match(self.operation - 4, computer.comparison_flag); [INFO] [stdout] 226 | | if condition { [INFO] [stdout] 227 | | save_jump(computer); [INFO] [stdout] 228 | | computer.pc = self.address; [INFO] [stdout] 229 | | } [INFO] [stdout] 230 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | / create_instruction!(JmpA, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 233 | | let zero = Word::default(); [INFO] [stdout] 234 | | let result = compare_words(&computer.ra, &zero, (0, 5)); [INFO] [stdout] 235 | | let condition = condition_match(self.operation, result); [INFO] [stdout] ... | [INFO] [stdout] 239 | | } [INFO] [stdout] 240 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | / create_instruction!(JmpX, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 243 | | let zero = Word::default(); [INFO] [stdout] 244 | | let result = compare_words(&computer.rx, &zero, (0, 5)); [INFO] [stdout] 245 | | let condition = condition_match(self.operation, result); [INFO] [stdout] ... | [INFO] [stdout] 249 | | } [INFO] [stdout] 250 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | / create_instruction!(JmpI, index: u8, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 253 | | let zero = Word::default(); [INFO] [stdout] 254 | | let ri = register_for_index(computer, self.index); [INFO] [stdout] 255 | | let result = compare_words(&ri, &zero, (0, 5)); [INFO] [stdout] ... | [INFO] [stdout] 260 | | } [INFO] [stdout] 261 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | / create_instruction!(SLA, amount: usize, cycle: bool, (self, computer) { [INFO] [stdout] 264 | | let r = computer.ra.clone(); [INFO] [stdout] 265 | | computer.ra = single_word_left_shift(&r, self.amount, self.cycle); [INFO] [stdout] 266 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | / create_instruction!(SRA, amount: usize, cycle: bool, (self, computer) { [INFO] [stdout] 269 | | let r = computer.ra.clone(); [INFO] [stdout] 270 | | computer.ra = single_word_right_shift(&r, self.amount, self.cycle); [INFO] [stdout] 271 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | / create_instruction!(SLAX, amount: usize, (self, computer) { [INFO] [stdout] 274 | | let a = computer.ra.clone(); [INFO] [stdout] 275 | | let x = computer.rx.clone(); [INFO] [stdout] 276 | | let (ra, rx) = double_word_left_shift(&a, &x, self.amount); [INFO] [stdout] 277 | | computer.ra = ra; [INFO] [stdout] 278 | | computer.rx = rx; [INFO] [stdout] 279 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | / create_instruction!(SRAX, amount: usize, (self, computer) { [INFO] [stdout] 282 | | let a = computer.ra.clone(); [INFO] [stdout] 283 | | let x = computer.rx.clone(); [INFO] [stdout] 284 | | let (ra, rx) = double_word_right_shift(&a, &x, self.amount); [INFO] [stdout] 285 | | computer.ra = ra; [INFO] [stdout] 286 | | computer.rx = rx; [INFO] [stdout] 287 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.83s [INFO] running `Command { std: "docker" "inspect" "b27b23cb01b68c658d781177c994c0c35fc649d187863f234118c55fe1d7e7f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b27b23cb01b68c658d781177c994c0c35fc649d187863f234118c55fe1d7e7f5", kill_on_drop: false }` [INFO] [stdout] b27b23cb01b68c658d781177c994c0c35fc649d187863f234118c55fe1d7e7f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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] 25ca5ef7d5c92bb00cfdb3606dfba9e2618b1a7ee7ce18cc91388ab5d68a4914 [INFO] running `Command { std: "docker" "start" "-a" "25ca5ef7d5c92bb00cfdb3606dfba9e2618b1a7ee7ce18cc91388ab5d68a4914", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling mixal v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `less` should have an upper camel case name [INFO] [stdout] --> src/computer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | less, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Less` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `equal` should have an upper camel case name [INFO] [stdout] --> src/computer.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | equal, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `greater` should have an upper camel case name [INFO] [stdout] --> src/computer.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | greater [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Greater` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::computer::Computer` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::computer::Computer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `address` [INFO] [stdout] --> src/word.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn address(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `index` [INFO] [stdout] --> src/word.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn index(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `field` [INFO] [stdout] --> src/word.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn field(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `opcode` [INFO] [stdout] --> src/word.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fetch` [INFO] [stdout] --> src/computer.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn fetch(self) -> Word { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_index` [INFO] [stdout] --> src/computer.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn decode_index(&mut self, index: &u8) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_field` [INFO] [stdout] --> src/computer.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn decode_field(&self, field: &u8) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/computer.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn decode(&mut self, instruction: &Word) -> Box { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/computer.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> $i { $i {} } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | create_instruction!(NoOperation, (self, _c) {}); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new() -> $i { $i {} } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | create_instruction!(Halt, (self, computer) { computer.pc = 4000; }); [INFO] [stdout] | ------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | / create_instruction!(LoadA, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stdout] 64 | | let ra = &mut computer.ra; [INFO] [stdout] 65 | | let mem = &computer.memory[self.address]; [INFO] [stdout] 66 | | copy_word_fields(mem, ra, self.field_specification); [INFO] [stdout] 67 | | if self.negative { ra.positive = !ra.positive; } [INFO] [stdout] 68 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | / create_instruction!(LoadX, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stdout] 71 | | let rx = &mut computer.rx; [INFO] [stdout] 72 | | let mem = &computer.memory[self.address]; [INFO] [stdout] 73 | | copy_word_fields(mem, rx, self.field_specification); [INFO] [stdout] 74 | | if self.negative { rx.positive = !rx.positive; } [INFO] [stdout] 75 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | / create_instruction!(LoadI, index: u8, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stdout] 78 | | let mem = &computer.memory[self.address].clone(); [INFO] [stdout] 79 | | let ri = register_for_index(computer, self.index); [INFO] [stdout] 80 | | copy_word_fields_i(mem, ri, self.field_specification); [INFO] [stdout] 81 | | if self.negative { ri.positive = !ri.positive; } [INFO] [stdout] 82 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | / create_instruction!(StoreX, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 89 | | store_operation(&computer.rx, &mut computer.memory[self.address], self.field_specification); [INFO] [stdout] 90 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | / create_instruction!(StoreJ, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 103 | | store_operation(&computer.rj, &mut computer.memory[self.address], self.field_specification); [INFO] [stdout] 104 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | / create_instruction!(StoreZ, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 107 | | let zero = Word::default(); [INFO] [stdout] 108 | | store_operation(&zero, &mut computer.memory[self.address], self.field_specification); [INFO] [stdout] 109 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | / create_instruction!(Sub, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 118 | | let (value, overflow) = add_words(&computer.ra, &computer.memory[self.address].negate(), self.field_specification); [INFO] [stdout] 119 | | copy_word_fields(&value, &mut computer.ra, self.field_specification); [INFO] [stdout] 120 | | computer.overflow_flag = overflow; [INFO] [stdout] 121 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | / create_instruction!(Mult, address: usize, field_specification: (usize, usize) , (self, computer) { [INFO] [stdout] 124 | | let (lower_value, upper_value) = multiply_words(&computer.ra, &computer.memory[self.address].negate(), self.field_specification); [INFO] [stdout] 125 | | copy_word_fields(&lower_value, &mut computer.rx, (0,5)); [INFO] [stdout] 126 | | copy_word_fields(&upper_value, &mut computer.ra, (0,5)); [INFO] [stdout] 127 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | / create_instruction!(Div, address: usize, field_specification: (usize, usize) , (self, computer) { [INFO] [stdout] 130 | | let (dividend, remainder, overflow) = divide_words(&computer.ra, &computer.rx, &computer.memory[self.address].negate(), self.field_sp... [INFO] [stdout] 131 | | copy_word_fields(&remainder, &mut computer.rx, (0,5)); [INFO] [stdout] 132 | | copy_word_fields(÷nd, &mut computer.ra, (0,5)); [INFO] [stdout] 133 | | computer.overflow_flag = overflow; [INFO] [stdout] 134 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | / create_instruction!(EntX, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 143 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 144 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 145 | | copy_word_fields(&word, &mut computer.rx, (0, 5)); [INFO] [stdout] 146 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | / create_instruction!(EntI, index: u8, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 149 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 150 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 151 | | let mut ri = register_for_index(computer, self.index); [INFO] [stdout] 152 | | copy_word_fields_i(&word, &mut ri, (0,5)); [INFO] [stdout] 153 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | / create_instruction!(IncA, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 156 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 157 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 158 | | let (value, overflow) = add_words(&computer.ra, &word, (0,5)); [INFO] [stdout] 159 | | copy_word_fields(&value, &mut computer.ra, (0, 5)); [INFO] [stdout] 160 | | computer.overflow_flag = overflow; [INFO] [stdout] 161 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | / create_instruction!(IncX, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stdout] 164 | | let mut word = Word::from_value(self.value as i64); [INFO] [stdout] 165 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stdout] 166 | | let (value, overflow) = add_words(&computer.rx, &word, (0,5)); [INFO] [stdout] 167 | | copy_word_fields(&value, &mut computer.rx, (0, 5)); [INFO] [stdout] 168 | | computer.overflow_flag = overflow; [INFO] [stdout] 169 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | / create_instruction!(CmpA, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 181 | | let result = compare_words(&computer.ra, &computer.memory[self.address], self.field_specification); [INFO] [stdout] 182 | | computer.comparison_flag = result; [INFO] [stdout] 183 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | / create_instruction!(CmpX, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 186 | | let result = compare_words(&computer.rx, &computer.memory[self.address], self.field_specification); [INFO] [stdout] 187 | | computer.comparison_flag = result; [INFO] [stdout] 188 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | / create_instruction!(CmpI, index: u8, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stdout] 191 | | let mem = computer.memory[self.address].clone(); [INFO] [stdout] 192 | | let ri = register_for_index(computer, self.index); [INFO] [stdout] 193 | | let result = compare_words(&ri, &mem, self.field_specification); [INFO] [stdout] 194 | | computer.comparison_flag = result; [INFO] [stdout] 195 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | / create_instruction!(Jmp, address: usize, save_address: bool, (self, computer) { [INFO] [stdout] 198 | | if self.save_address { [INFO] [stdout] 199 | | save_jump(computer); [INFO] [stdout] 200 | | } [INFO] [stdout] 201 | | computer.pc = self.address; [INFO] [stdout] 202 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | / create_instruction!(JmpO, address: usize, should_negate: bool, (self, computer) { [INFO] [stdout] 205 | | if computer.overflow_flag.clone() != self.should_negate { [INFO] [stdout] 206 | | save_jump(computer); [INFO] [stdout] 207 | | computer.pc = self.address; [INFO] [stdout] 208 | | } [INFO] [stdout] 209 | | computer.overflow_flag = false; [INFO] [stdout] 210 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | / create_instruction!(JmpC, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 225 | | let condition = condition_match(self.operation - 4, computer.comparison_flag); [INFO] [stdout] 226 | | if condition { [INFO] [stdout] 227 | | save_jump(computer); [INFO] [stdout] 228 | | computer.pc = self.address; [INFO] [stdout] 229 | | } [INFO] [stdout] 230 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | / create_instruction!(JmpA, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 233 | | let zero = Word::default(); [INFO] [stdout] 234 | | let result = compare_words(&computer.ra, &zero, (0, 5)); [INFO] [stdout] 235 | | let condition = condition_match(self.operation, result); [INFO] [stdout] ... | [INFO] [stdout] 239 | | } [INFO] [stdout] 240 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | / create_instruction!(JmpX, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 243 | | let zero = Word::default(); [INFO] [stdout] 244 | | let result = compare_words(&computer.rx, &zero, (0, 5)); [INFO] [stdout] 245 | | let condition = condition_match(self.operation, result); [INFO] [stdout] ... | [INFO] [stdout] 249 | | } [INFO] [stdout] 250 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | / create_instruction!(JmpI, index: u8, address: usize, operation: u8, (self, computer) { [INFO] [stdout] 253 | | let zero = Word::default(); [INFO] [stdout] 254 | | let ri = register_for_index(computer, self.index); [INFO] [stdout] 255 | | let result = compare_words(&ri, &zero, (0, 5)); [INFO] [stdout] ... | [INFO] [stdout] 260 | | } [INFO] [stdout] 261 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | / create_instruction!(SLA, amount: usize, cycle: bool, (self, computer) { [INFO] [stdout] 264 | | let r = computer.ra.clone(); [INFO] [stdout] 265 | | computer.ra = single_word_left_shift(&r, self.amount, self.cycle); [INFO] [stdout] 266 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | / create_instruction!(SRA, amount: usize, cycle: bool, (self, computer) { [INFO] [stdout] 269 | | let r = computer.ra.clone(); [INFO] [stdout] 270 | | computer.ra = single_word_right_shift(&r, self.amount, self.cycle); [INFO] [stdout] 271 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | / create_instruction!(SLAX, amount: usize, (self, computer) { [INFO] [stdout] 274 | | let a = computer.ra.clone(); [INFO] [stdout] 275 | | let x = computer.rx.clone(); [INFO] [stdout] 276 | | let (ra, rx) = double_word_left_shift(&a, &x, self.amount); [INFO] [stdout] 277 | | computer.ra = ra; [INFO] [stdout] 278 | | computer.rx = rx; [INFO] [stdout] 279 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/instruction.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | / create_instruction!(SRAX, amount: usize, (self, computer) { [INFO] [stdout] 282 | | let a = computer.ra.clone(); [INFO] [stdout] 283 | | let x = computer.rx.clone(); [INFO] [stdout] 284 | | let (ra, rx) = double_word_right_shift(&a, &x, self.amount); [INFO] [stdout] 285 | | computer.ra = ra; [INFO] [stdout] 286 | | computer.rx = rx; [INFO] [stdout] 287 | | }); [INFO] [stdout] | |__- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.32s [INFO] running `Command { std: "docker" "inspect" "25ca5ef7d5c92bb00cfdb3606dfba9e2618b1a7ee7ce18cc91388ab5d68a4914", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25ca5ef7d5c92bb00cfdb3606dfba9e2618b1a7ee7ce18cc91388ab5d68a4914", kill_on_drop: false }` [INFO] [stdout] 25ca5ef7d5c92bb00cfdb3606dfba9e2618b1a7ee7ce18cc91388ab5d68a4914 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-47/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] 53c37750afe555aae661ef822e6f59c9678cc8317a864da1fe1878534f42230a [INFO] running `Command { std: "docker" "start" "-a" "53c37750afe555aae661ef822e6f59c9678cc8317a864da1fe1878534f42230a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: variant `less` should have an upper camel case name [INFO] [stderr] --> src/computer.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | less, [INFO] [stderr] | ^^^^ help: convert the identifier to upper camel case: `Less` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `equal` should have an upper camel case name [INFO] [stderr] --> src/computer.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | equal, [INFO] [stderr] | ^^^^^ help: convert the identifier to upper camel case: `Equal` [INFO] [stderr] [INFO] [stderr] warning: variant `greater` should have an upper camel case name [INFO] [stderr] --> src/computer.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | greater [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper camel case: `Greater` [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::computer::Computer` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::computer::Computer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `address` [INFO] [stderr] --> src/word.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn address(&self) -> usize { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `index` [INFO] [stderr] --> src/word.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn index(&self) -> u8 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `field` [INFO] [stderr] --> src/word.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn field(&self) -> u8 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `opcode` [INFO] [stderr] --> src/word.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn opcode(&self) -> u8 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `fetch` [INFO] [stderr] --> src/computer.rs:79:8 [INFO] [stderr] | [INFO] [stderr] 79 | fn fetch(self) -> Word { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `decode_index` [INFO] [stderr] --> src/computer.rs:83:8 [INFO] [stderr] | [INFO] [stderr] 83 | fn decode_index(&mut self, index: &u8) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `decode_field` [INFO] [stderr] --> src/computer.rs:91:8 [INFO] [stderr] | [INFO] [stderr] 91 | fn decode_field(&self, field: &u8) -> (usize, usize) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `decode` [INFO] [stderr] --> src/computer.rs:97:8 [INFO] [stderr] | [INFO] [stderr] 97 | fn decode(&mut self, instruction: &Word) -> Box { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `run` [INFO] [stderr] --> src/computer.rs:180:12 [INFO] [stderr] | [INFO] [stderr] 180 | pub fn run(&mut self) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn new() -> $i { $i {} } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 59 | create_instruction!(NoOperation, (self, _c) {}); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn new() -> $i { $i {} } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 61 | create_instruction!(Halt, (self, computer) { computer.pc = 4000; }); [INFO] [stderr] | ------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | / create_instruction!(LoadA, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stderr] 64 | | let ra = &mut computer.ra; [INFO] [stderr] 65 | | let mem = &computer.memory[self.address]; [INFO] [stderr] 66 | | copy_word_fields(mem, ra, self.field_specification); [INFO] [stderr] 67 | | if self.negative { ra.positive = !ra.positive; } [INFO] [stderr] 68 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 70 | / create_instruction!(LoadX, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stderr] 71 | | let rx = &mut computer.rx; [INFO] [stderr] 72 | | let mem = &computer.memory[self.address]; [INFO] [stderr] 73 | | copy_word_fields(mem, rx, self.field_specification); [INFO] [stderr] 74 | | if self.negative { rx.positive = !rx.positive; } [INFO] [stderr] 75 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | / create_instruction!(LoadI, index: u8, address: usize, field_specification: (usize, usize), negative: bool, (self, computer) { [INFO] [stderr] 78 | | let mem = &computer.memory[self.address].clone(); [INFO] [stderr] 79 | | let ri = register_for_index(computer, self.index); [INFO] [stderr] 80 | | copy_word_fields_i(mem, ri, self.field_specification); [INFO] [stderr] 81 | | if self.negative { ri.positive = !ri.positive; } [INFO] [stderr] 82 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | / create_instruction!(StoreX, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stderr] 89 | | store_operation(&computer.rx, &mut computer.memory[self.address], self.field_specification); [INFO] [stderr] 90 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 102 | / create_instruction!(StoreJ, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stderr] 103 | | store_operation(&computer.rj, &mut computer.memory[self.address], self.field_specification); [INFO] [stderr] 104 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 106 | / create_instruction!(StoreZ, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stderr] 107 | | let zero = Word::default(); [INFO] [stderr] 108 | | store_operation(&zero, &mut computer.memory[self.address], self.field_specification); [INFO] [stderr] 109 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 117 | / create_instruction!(Sub, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stderr] 118 | | let (value, overflow) = add_words(&computer.ra, &computer.memory[self.address].negate(), self.field_specification); [INFO] [stderr] 119 | | copy_word_fields(&value, &mut computer.ra, self.field_specification); [INFO] [stdout] [INFO] [stderr] 120 | | computer.overflow_flag = overflow; [INFO] [stdout] running 60 tests [INFO] [stderr] 121 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 123 | / create_instruction!(Mult, address: usize, field_specification: (usize, usize) , (self, computer) { [INFO] [stderr] 124 | | let (lower_value, upper_value) = multiply_words(&computer.ra, &computer.memory[self.address].negate(), self.field_specification); [INFO] [stderr] 125 | | copy_word_fields(&lower_value, &mut computer.rx, (0,5)); [INFO] [stderr] 126 | | copy_word_fields(&upper_value, &mut computer.ra, (0,5)); [INFO] [stderr] 127 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | / create_instruction!(Div, address: usize, field_specification: (usize, usize) , (self, computer) { [INFO] [stderr] 130 | | let (dividend, remainder, overflow) = divide_words(&computer.ra, &computer.rx, &computer.memory[self.address].negate(), self.field_sp... [INFO] [stderr] 131 | | copy_word_fields(&remainder, &mut computer.rx, (0,5)); [INFO] [stderr] 132 | | copy_word_fields(÷nd, &mut computer.ra, (0,5)); [INFO] [stderr] 133 | | computer.overflow_flag = overflow; [INFO] [stderr] 134 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 142 | / create_instruction!(EntX, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stderr] 143 | | let mut word = Word::from_value(self.value as i64); [INFO] [stderr] 144 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stderr] 145 | | copy_word_fields(&word, &mut computer.rx, (0, 5)); [INFO] [stderr] 146 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 148 | / create_instruction!(EntI, index: u8, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stderr] 149 | | let mut word = Word::from_value(self.value as i64); [INFO] [stderr] 150 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stderr] 151 | | let mut ri = register_for_index(computer, self.index); [INFO] [stderr] 152 | | copy_word_fields_i(&word, &mut ri, (0,5)); [INFO] [stderr] 153 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 155 | / create_instruction!(IncA, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stderr] 156 | | let mut word = Word::from_value(self.value as i64); [INFO] [stderr] 157 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stderr] 158 | | let (value, overflow) = add_words(&computer.ra, &word, (0,5)); [INFO] [stderr] 159 | | copy_word_fields(&value, &mut computer.ra, (0, 5)); [INFO] [stderr] 160 | | computer.overflow_flag = overflow; [INFO] [stderr] 161 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 163 | / create_instruction!(IncX, value: usize, entry_is_positive: bool, should_negate: bool, (self, computer) { [INFO] [stderr] 164 | | let mut word = Word::from_value(self.value as i64); [INFO] [stderr] 165 | | word.positive = if self.should_negate { !self.entry_is_positive } else { self.entry_is_positive }; [INFO] [stderr] 166 | | let (value, overflow) = add_words(&computer.rx, &word, (0,5)); [INFO] [stderr] 167 | | copy_word_fields(&value, &mut computer.rx, (0, 5)); [INFO] [stderr] 168 | | computer.overflow_flag = overflow; [INFO] [stderr] 169 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 180 | / create_instruction!(CmpA, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stderr] 181 | | let result = compare_words(&computer.ra, &computer.memory[self.address], self.field_specification); [INFO] [stderr] 182 | | computer.comparison_flag = result; [INFO] [stderr] 183 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 185 | / create_instruction!(CmpX, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stderr] 186 | | let result = compare_words(&computer.rx, &computer.memory[self.address], self.field_specification); [INFO] [stderr] 187 | | computer.comparison_flag = result; [INFO] [stderr] 188 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 190 | / create_instruction!(CmpI, index: u8, address: usize, field_specification: (usize, usize), (self, computer) { [INFO] [stderr] 191 | | let mem = computer.memory[self.address].clone(); [INFO] [stderr] 192 | | let ri = register_for_index(computer, self.index); [INFO] [stderr] 193 | | let result = compare_words(&ri, &mem, self.field_specification); [INFO] [stderr] 194 | | computer.comparison_flag = result; [INFO] [stderr] 195 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 197 | / create_instruction!(Jmp, address: usize, save_address: bool, (self, computer) { [INFO] [stderr] 198 | | if self.save_address { [INFO] [stderr] 199 | | save_jump(computer); [INFO] [stderr] 200 | | } [INFO] [stderr] 201 | | computer.pc = self.address; [INFO] [stderr] 202 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 204 | / create_instruction!(JmpO, address: usize, should_negate: bool, (self, computer) { [INFO] [stderr] 205 | | if computer.overflow_flag.clone() != self.should_negate { [INFO] [stderr] 206 | | save_jump(computer); [INFO] [stderr] 207 | | computer.pc = self.address; [INFO] [stderr] 208 | | } [INFO] [stderr] 209 | | computer.overflow_flag = false; [INFO] [stderr] 210 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 224 | / create_instruction!(JmpC, address: usize, operation: u8, (self, computer) { [INFO] [stderr] 225 | | let condition = condition_match(self.operation - 4, computer.comparison_flag); [INFO] [stderr] 226 | | if condition { [INFO] [stderr] 227 | | save_jump(computer); [INFO] [stderr] 228 | | computer.pc = self.address; [INFO] [stderr] 229 | | } [INFO] [stderr] 230 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 232 | / create_instruction!(JmpA, address: usize, operation: u8, (self, computer) { [INFO] [stderr] 233 | | let zero = Word::default(); [INFO] [stderr] 234 | | let result = compare_words(&computer.ra, &zero, (0, 5)); [INFO] [stderr] 235 | | let condition = condition_match(self.operation, result); [INFO] [stderr] ... | [INFO] [stderr] 239 | | } [INFO] [stderr] 240 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 242 | / create_instruction!(JmpX, address: usize, operation: u8, (self, computer) { [INFO] [stderr] 243 | | let zero = Word::default(); [INFO] [stderr] 244 | | let result = compare_words(&computer.rx, &zero, (0, 5)); [INFO] [stderr] 245 | | let condition = condition_match(self.operation, result); [INFO] [stderr] ... | [INFO] [stderr] 249 | | } [INFO] [stderr] 250 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 252 | / create_instruction!(JmpI, index: u8, address: usize, operation: u8, (self, computer) { [INFO] [stderr] 253 | | let zero = Word::default(); [INFO] [stderr] 254 | | let ri = register_for_index(computer, self.index); [INFO] [stderr] 255 | | let result = compare_words(&ri, &zero, (0, 5)); [INFO] [stderr] ... | [INFO] [stderr] 260 | | } [INFO] [stderr] 261 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 263 | / create_instruction!(SLA, amount: usize, cycle: bool, (self, computer) { [INFO] [stderr] 264 | | let r = computer.ra.clone(); [INFO] [stderr] 265 | | computer.ra = single_word_left_shift(&r, self.amount, self.cycle); [INFO] [stderr] 266 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 268 | / create_instruction!(SRA, amount: usize, cycle: bool, (self, computer) { [INFO] [stderr] 269 | | let r = computer.ra.clone(); [INFO] [stderr] 270 | | computer.ra = single_word_right_shift(&r, self.amount, self.cycle); [INFO] [stderr] 271 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 273 | / create_instruction!(SLAX, amount: usize, (self, computer) { [INFO] [stderr] 274 | | let a = computer.ra.clone(); [INFO] [stderr] 275 | | let x = computer.rx.clone(); [INFO] [stderr] 276 | | let (ra, rx) = double_word_left_shift(&a, &x, self.amount); [INFO] [stderr] 277 | | computer.ra = ra; [INFO] [stderr] 278 | | computer.rx = rx; [INFO] [stderr] 279 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/instruction.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new($($v: $t),*) -> $i { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 281 | / create_instruction!(SRAX, amount: usize, (self, computer) { [INFO] [stderr] 282 | | let a = computer.ra.clone(); [INFO] [stderr] 283 | | let x = computer.rx.clone(); [INFO] [stderr] 284 | | let (ra, rx) = double_word_right_shift(&a, &x, self.amount); [INFO] [stderr] 285 | | computer.ra = ra; [INFO] [stderr] 286 | | computer.rx = rx; [INFO] [stderr] 287 | | }); [INFO] [stderr] | |__- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `create_instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `mixal` (bin "mixal" test) generated 41 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.78s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/mixal-6edd1f9d9d543a70) [INFO] [stdout] test tests::add_0_3 ... ok [INFO] [stdout] test tests::add_1_5 ... ok [INFO] [stdout] test tests::add_4_5 ... ok [INFO] [stdout] test tests::add_full ... ok [INFO] [stdout] test tests::cmpa_1_5 ... ok [INFO] [stdout] test tests::cmpa_full ... ok [INFO] [stdout] test tests::cmpa_0_0 ... ok [INFO] [stdout] test tests::cmpa_full_less ... ok [INFO] [stdout] test tests::copy_word_fields_partial ... ok [INFO] [stdout] test tests::copy_word_fields_full ... ok [INFO] [stdout] test tests::copy_word_fields_single ... ok [INFO] [stdout] test tests::div_full ... ok [INFO] [stdout] test tests::double_word_left_shift_1 ... ok [INFO] [stdout] test tests::double_word_left_shift_5 ... ok [INFO] [stdout] test tests::double_word_left_shift_3 ... ok [INFO] [stdout] test tests::dec_1_1 ... ok [INFO] [stdout] test tests::double_word_right_shift_3 ... ok [INFO] [stdout] test tests::double_word_right_shift_1 ... ok [INFO] [stdout] test tests::double_word_right_shift_5 ... ok [INFO] [stdout] test tests::enta_1000 ... ok [INFO] [stdout] test tests::enta_neg_0 ... ok [INFO] [stdout] test tests::load_a_1_4 ... ok [INFO] [stdout] test tests::inc_1_1 ... ok [INFO] [stdout] test tests::load_a_0_3 ... ok [INFO] [stdout] test tests::load_a_2_2 ... ok [INFO] [stdout] test tests::load_a_full ... ok [INFO] [stdout] test tests::load_i_0_3 ... ok [INFO] [stdout] test tests::mult_2_2 ... ok [INFO] [stdout] test tests::mult_full ... ok [INFO] [stdout] test tests::load_a_3_5 ... ok [INFO] [stdout] test tests::load_i_3_5 ... ok [INFO] [stdout] test tests::mult_neg ... ok [INFO] [stdout] test tests::load_i_full ... ok [INFO] [stdout] test tests::single_word_left_shift_5 ... ok [INFO] [stdout] test tests::single_word_left_shift_1 ... ok [INFO] [stdout] test tests::single_word_left_shift_3 ... ok [INFO] [stdout] test tests::single_word_left_shift_cycle_1 ... ok [INFO] [stdout] test tests::save_jump_test ... ok [INFO] [stdout] test tests::single_word_left_shift_cycle_3 ... ok [INFO] [stdout] test tests::single_word_left_shift_cycle_5 ... ok [INFO] [stdout] test tests::single_word_right_shift_1 ... ok [INFO] [stdout] test tests::single_word_right_shift_3 ... ok [INFO] [stdout] test tests::single_word_right_shift_5 ... ok [INFO] [stdout] test tests::single_word_right_shift_cycle_1 ... ok [INFO] [stdout] test tests::single_word_right_shift_cycle_3 ... ok [INFO] [stdout] test tests::single_word_right_shift_cycle_5 ... ok [INFO] [stdout] test tests::store_a_0_1 ... ok [INFO] [stdout] test tests::store_a_1_5 ... ok [INFO] [stdout] test tests::store_a_2_3 ... ok [INFO] [stdout] test tests::store_a_5_5 ... ok [INFO] [stdout] test tests::store_a_2_2 ... ok [INFO] [stdout] test tests::store_i_0_1 ... ok [INFO] [stdout] test tests::store_a_full ... ok [INFO] [stdout] test tests::store_i_full ... ok [INFO] [stdout] test tests::store_i_1_5 ... ok [INFO] [stdout] test tests::store_i_2_3 ... ok [INFO] [stdout] test tests::store_i_5_5 ... ok [INFO] [stdout] test tests::store_i_2_2 ... ok [INFO] [stdout] test tests::add_0_0 - should panic ... ok [INFO] [stdout] test tests::load_i_1_3 - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 60 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "53c37750afe555aae661ef822e6f59c9678cc8317a864da1fe1878534f42230a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53c37750afe555aae661ef822e6f59c9678cc8317a864da1fe1878534f42230a", kill_on_drop: false }` [INFO] [stdout] 53c37750afe555aae661ef822e6f59c9678cc8317a864da1fe1878534f42230a