[INFO] cloning repository https://github.com/aep000/myvm-LC3 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aep000/myvm-LC3" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faep000%2Fmyvm-LC3", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faep000%2Fmyvm-LC3'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3428c8ff1af1990250b6b1f776f71b3f85b7e6a3 [INFO] checking aep000/myvm-LC3 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faep000%2Fmyvm-LC3" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aep000/myvm-LC3 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aep000/myvm-LC3 [INFO] finished tweaking git repo https://github.com/aep000/myvm-LC3 [INFO] tweaked toml for git repo https://github.com/aep000/myvm-LC3 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/aep000/myvm-LC3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a4fb37eeb56a06bba6ccd2f7991fef8fba78df53d860a9f896bcd535b95de34a [INFO] running `Command { std: "docker" "start" "-a" "a4fb37eeb56a06bba6ccd2f7991fef8fba78df53d860a9f896bcd535b95de34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4fb37eeb56a06bba6ccd2f7991fef8fba78df53d860a9f896bcd535b95de34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4fb37eeb56a06bba6ccd2f7991fef8fba78df53d860a9f896bcd535b95de34a", kill_on_drop: false }` [INFO] [stdout] a4fb37eeb56a06bba6ccd2f7991fef8fba78df53d860a9f896bcd535b95de34a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba65ca591f9deda9dce4020b04e56a288a752e90b7d226516a4804b1a32de4bc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ba65ca591f9deda9dce4020b04e56a288a752e90b7d226516a4804b1a32de4bc", kill_on_drop: false }` [INFO] [stderr] Checking myvm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | if (((x >> (bit_count - 1)) & 1)==0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | if (context.Reg[r] == 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | else if (context.Reg[r] >> 15 == 1) /* a 1 in the left-most bit indicates negative */ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FL_POS` should have an upper camel case name [INFO] [stdout] --> src/instructions.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | FL_POS = 1 << 0, /* P */ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `FlPos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FL_ZRO` should have an upper camel case name [INFO] [stdout] --> src/instructions.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | FL_ZRO = 1 << 1, /* Z */ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `FlZro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FL_NEG` should have an upper camel case name [INFO] [stdout] --> src/instructions.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | FL_NEG = 1 << 2, /* N */ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `FlNeg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/instructions.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | while(context.Memory[c as usize]!=0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | if(conds & context.Reg[RNum!(Registers::RCOND)] == conds){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | if (immediatMode == 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 167 | if(flag == 0){ [INFO] [stdout] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:182:20 [INFO] [stdout] | [INFO] [stdout] 182 | if (immediatMode == 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | if(op< Instruction::ICOUNT as u16){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | if (((x >> (bit_count - 1)) & 1)==0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | if (context.Reg[r] == 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | else if (context.Reg[r] >> 15 == 1) /* a 1 in the left-most bit indicates negative */ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FL_POS` should have an upper camel case name [INFO] [stdout] --> src/instructions.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | FL_POS = 1 << 0, /* P */ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `FlPos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FL_ZRO` should have an upper camel case name [INFO] [stdout] --> src/instructions.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | FL_ZRO = 1 << 1, /* Z */ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `FlZro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FL_NEG` should have an upper camel case name [INFO] [stdout] --> src/instructions.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | FL_NEG = 1 << 2, /* N */ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `FlNeg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/instructions.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | while(context.Memory[c as usize]!=0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | if(conds & context.Reg[RNum!(Registers::RCOND)] == conds){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:134:20 [INFO] [stdout] | [INFO] [stdout] 134 | if (immediatMode == 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 167 | if(flag == 0){ [INFO] [stdout] | ^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/instructions.rs:182:20 [INFO] [stdout] | [INFO] [stdout] 182 | if (immediatMode == 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | if(op< Instruction::ICOUNT as u16){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extended` [INFO] [stdout] --> src/instructions.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let extended = x | (0xFFFF << bit_count); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extended` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr` [INFO] [stdout] --> src/instructions.rs:59:46 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn run(&self, context: &mut Context, instr: &usize){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_instr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/instructions.rs:224:21 [INFO] [stdout] | [INFO] [stdout] 224 | ... let offset = sign_extend((instr & 0x1ff) as u16, 9); //Location in memory at Offset + PC contains the location we are loading from [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extended` [INFO] [stdout] --> src/instructions.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let extended = x | (0xFFFF << bit_count); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extended` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instr` [INFO] [stdout] --> src/instructions.rs:59:46 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn run(&self, context: &mut Context, instr: &usize){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_instr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/instructions.rs:224:21 [INFO] [stdout] | [INFO] [stdout] 224 | ... let offset = sign_extend((instr & 0x1ff) as u16, 9); //Location in memory at Offset + PC contains the location we are loading from [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let mut running = true; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let mut running = true; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R1` [INFO] [stdout] --> src/memory.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | R1=1, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R2` [INFO] [stdout] --> src/memory.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | R2=2, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R3` [INFO] [stdout] --> src/memory.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | R3=3, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R4` [INFO] [stdout] --> src/memory.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | R4=4, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R5` [INFO] [stdout] --> src/memory.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | R5=5, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R6` [INFO] [stdout] --> src/memory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | R6=6, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GETC` [INFO] [stdout] --> src/instructions.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | GETC = 0x20, /* get character from keyboard, not echoed onto the terminal */ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OUT` [INFO] [stdout] --> src/instructions.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | OUT = 0x21, /* output a character */ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PUTS` [INFO] [stdout] --> src/instructions.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | PUTS = 0x22, /* output a word string */ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IN` [INFO] [stdout] --> src/instructions.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | IN = 0x23, /* get character from keyboard, echoed onto the terminal */ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PUTSP` [INFO] [stdout] --> src/instructions.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | PUTSP = 0x24, /* output a byte string */ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HALT` [INFO] [stdout] --> src/instructions.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | HALT = 0x25 /* halt the program */ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Memory` should have a snake case name [INFO] [stdout] --> src/memory.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub Memory: [u16; 65535], [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Reg` should have a snake case name [INFO] [stdout] --> src/memory.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub Reg: [u16; RNum!(Registers::RCOUNT)], [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Run` should have a snake case name [INFO] [stdout] --> src/instructions.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn Run(&self, context: &mut Context, instr: &u16){ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `run` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `immediatMode` should have a snake case name [INFO] [stdout] --> src/instructions.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | let immediatMode = (instr >> 5) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `immediat_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `immediatMode` should have a snake case name [INFO] [stdout] --> src/instructions.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | let immediatMode = (instr >> 5) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `immediat_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `baseR` should have a snake case name [INFO] [stdout] --> src/instructions.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | let baseR = (instr >> 6) & 0x7; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `base_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R1` [INFO] [stdout] --> src/memory.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | R1=1, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R2` [INFO] [stdout] --> src/memory.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | R2=2, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R3` [INFO] [stdout] --> src/memory.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | R3=3, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R4` [INFO] [stdout] --> src/memory.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | R4=4, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R5` [INFO] [stdout] --> src/memory.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | R5=5, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `R6` [INFO] [stdout] --> src/memory.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | R6=6, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GETC` [INFO] [stdout] --> src/instructions.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | GETC = 0x20, /* get character from keyboard, not echoed onto the terminal */ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OUT` [INFO] [stdout] --> src/instructions.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | OUT = 0x21, /* output a character */ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PUTS` [INFO] [stdout] --> src/instructions.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | PUTS = 0x22, /* output a word string */ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IN` [INFO] [stdout] --> src/instructions.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | IN = 0x23, /* get character from keyboard, echoed onto the terminal */ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PUTSP` [INFO] [stdout] --> src/instructions.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | PUTSP = 0x24, /* output a byte string */ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HALT` [INFO] [stdout] --> src/instructions.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | HALT = 0x25 /* halt the program */ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Memory` should have a snake case name [INFO] [stdout] --> src/memory.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub Memory: [u16; 65535], [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `memory` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Reg` should have a snake case name [INFO] [stdout] --> src/memory.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub Reg: [u16; RNum!(Registers::RCOUNT)], [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `reg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Run` should have a snake case name [INFO] [stdout] --> src/instructions.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn Run(&self, context: &mut Context, instr: &u16){ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `run` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `immediatMode` should have a snake case name [INFO] [stdout] --> src/instructions.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | let immediatMode = (instr >> 5) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `immediat_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `immediatMode` should have a snake case name [INFO] [stdout] --> src/instructions.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | let immediatMode = (instr >> 5) & 0x1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `immediat_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `baseR` should have a snake case name [INFO] [stdout] --> src/instructions.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | let baseR = (instr >> 6) & 0x7; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `base_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "ba65ca591f9deda9dce4020b04e56a288a752e90b7d226516a4804b1a32de4bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba65ca591f9deda9dce4020b04e56a288a752e90b7d226516a4804b1a32de4bc", kill_on_drop: false }` [INFO] [stdout] ba65ca591f9deda9dce4020b04e56a288a752e90b7d226516a4804b1a32de4bc