[INFO] cloning repository https://github.com/ear7h/mvm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ear7h/mvm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fear7h%2Fmvm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fear7h%2Fmvm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 94895c4d35e0138bae17d20f630b2dd4b47ac06c [INFO] checking ear7h/mvm against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fear7h%2Fmvm" "/workspace/builds/worker-98/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-98/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ear7h/mvm on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-98/source/.cargo/config [INFO] started tweaking git repo https://github.com/ear7h/mvm [INFO] finished tweaking git repo https://github.com/ear7h/mvm [INFO] tweaked toml for git repo https://github.com/ear7h/mvm written to /workspace/builds/worker-98/source/Cargo.toml [INFO] crate git repo https://github.com/ear7h/mvm already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3830fcf966360ac01404a704c65c2afd40ad23722d9ace91e231a83453060ee8 [INFO] running `Command { std: "docker" "start" "-a" "3830fcf966360ac01404a704c65c2afd40ad23722d9ace91e231a83453060ee8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3830fcf966360ac01404a704c65c2afd40ad23722d9ace91e231a83453060ee8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3830fcf966360ac01404a704c65c2afd40ad23722d9ace91e231a83453060ee8", kill_on_drop: false }` [INFO] [stdout] 3830fcf966360ac01404a704c65c2afd40ad23722d9ace91e231a83453060ee8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89f9bd5fbdd389a59224ce60aa3b0cada38fbdde81f55b0d5a629f92901f0cd2 [INFO] running `Command { std: "docker" "start" "-a" "89f9bd5fbdd389a59224ce60aa3b0cada38fbdde81f55b0d5a629f92901f0cd2", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking mvm v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/mas.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/mvm.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/ast.rs (5 fixes) [INFO] [stderr] Fixed src/mas.rs (7 fixes) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mas.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / /** [INFO] [stdout] 132 | | * Assembler commands. These relate to op codes in the VM, but the op [INFO] [stdout] 133 | | * codes are picked implicitly based on the arguments. [INFO] [stdout] 134 | | */ [INFO] [stdout] | |___^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/mas.rs:308:18 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^^^^^^^------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | AsmCmd::PSHW | AsmCmd::POPW => 2, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_int` [INFO] [stdout] --> src/op_code.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_int(i:u8) -> $name { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KB` [INFO] [stdout] --> src/memory.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const KB:usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FAST_SIZE` [INFO] [stdout] --> src/memory.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const FAST_SIZE: usize = 32 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const PAGE_SIZE: usize = 4 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Memory` [INFO] [stdout] --> src/memory.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(code: &[u8]) -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/memory.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get(&self, addr: usize) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get2` [INFO] [stdout] --> src/memory.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get2(&self, addr: usize) -> [usize; 2] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/memory.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn set(&mut self, addr: usize, val: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `prog2` should have an upper case name [INFO] [stdout] --> src/mas.rs:408:7 [INFO] [stdout] | [INFO] [stdout] 408 | const prog2:&str = "; program 2 [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `PROG2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/mvm.rs (1 fix) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/mvm.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let op:u8 = memory.get(pc); [INFO] [stdout] 16 | | println!("{:?}", Op::from_int(op)); [INFO] [stdout] ... | [INFO] [stdout] 402 | | } [INFO] [stdout] 403 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 404 | [INFO] [stdout] 405 | println!("{:?}", memory.get::<[u8; 32]>(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/mvm.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let op:u8 = memory.get(pc); [INFO] [stdout] 16 | | println!("{:?}", Op::from_int(op)); [INFO] [stdout] ... | [INFO] [stdout] 402 | | } [INFO] [stdout] 403 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 404 | [INFO] [stdout] 405 | println!("{:?}", memory.get::<[u8; 32]>(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mas.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / /** [INFO] [stdout] 132 | | * Assembler commands. These relate to op codes in the VM, but the op [INFO] [stdout] 133 | | * codes are picked implicitly based on the arguments. [INFO] [stdout] 134 | | */ [INFO] [stdout] | |___^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/mas.rs:308:18 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^^^^^^^------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | AsmCmd::PSHW | AsmCmd::POPW => 2, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_int` [INFO] [stdout] --> src/op_code.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_int(i:u8) -> $name { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KB` [INFO] [stdout] --> src/memory.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const KB:usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FAST_SIZE` [INFO] [stdout] --> src/memory.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const FAST_SIZE: usize = 32 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const PAGE_SIZE: usize = 4 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Memory` [INFO] [stdout] --> src/memory.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(code: &[u8]) -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/memory.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get(&self, addr: usize) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get2` [INFO] [stdout] --> src/memory.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get2(&self, addr: usize) -> [usize; 2] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/memory.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn set(&mut self, addr: usize, val: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `prog2` should have an upper case name [INFO] [stdout] --> src/mas.rs:408:7 [INFO] [stdout] | [INFO] [stdout] 408 | const prog2:&str = "; program 2 [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `PROG2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.77s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking mvm v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mas.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / /** [INFO] [stdout] 132 | | * Assembler commands. These relate to op codes in the VM, but the op [INFO] [stdout] 133 | | * codes are picked implicitly based on the arguments. [INFO] [stdout] 134 | | */ [INFO] [stdout] | |___^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/mas.rs:308:18 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^^^^^^^------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/mas.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / /** [INFO] [stdout] 132 | | * Assembler commands. These relate to op codes in the VM, but the op [INFO] [stdout] 133 | | * codes are picked implicitly based on the arguments. [INFO] [stdout] 134 | | */ [INFO] [stdout] | |___^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | AsmCmd::PSHW | AsmCmd::POPW => 2, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_int` [INFO] [stdout] --> src/op_code.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_int(i:u8) -> $name { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KB` [INFO] [stdout] --> src/memory.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const KB:usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FAST_SIZE` [INFO] [stdout] --> src/memory.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const FAST_SIZE: usize = 32 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const PAGE_SIZE: usize = 4 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Memory` [INFO] [stdout] --> src/memory.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(code: &[u8]) -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/memory.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get(&self, addr: usize) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get2` [INFO] [stdout] --> src/memory.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get2(&self, addr: usize) -> [usize; 2] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/memory.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn set(&mut self, addr: usize, val: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `prog2` should have an upper case name [INFO] [stdout] --> src/mas.rs:408:7 [INFO] [stdout] | [INFO] [stdout] 408 | const prog2:&str = "; program 2 [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `PROG2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/mas.rs:308:18 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^^^^^^^------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | AsmCmd::PSHW | AsmCmd::POPW => 2, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/mas.rs:308:13 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_int` [INFO] [stdout] --> src/op_code.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_int(i:u8) -> $name { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KB` [INFO] [stdout] --> src/memory.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const KB:usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FAST_SIZE` [INFO] [stdout] --> src/memory.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const FAST_SIZE: usize = 32 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const PAGE_SIZE: usize = 4 * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Memory` [INFO] [stdout] --> src/memory.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/memory.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(code: &[u8]) -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/memory.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn get(&self, addr: usize) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get2` [INFO] [stdout] --> src/memory.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get2(&self, addr: usize) -> [usize; 2] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set` [INFO] [stdout] --> src/memory.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn set(&mut self, addr: usize, val: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `prog2` should have an upper case name [INFO] [stdout] --> src/mas.rs:408:7 [INFO] [stdout] | [INFO] [stdout] 408 | const prog2:&str = "; program 2 [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `PROG2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/mvm.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let op:u8 = memory.get(pc); [INFO] [stdout] 16 | | println!("{:?}", Op::from_int(op)); [INFO] [stdout] ... | [INFO] [stdout] 402 | | } [INFO] [stdout] 403 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 404 | [INFO] [stdout] 405 | println!("{:?}", memory.get::<[u8; 32]>(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/mvm.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 13 | / loop { [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let op:u8 = memory.get(pc); [INFO] [stdout] 16 | | println!("{:?}", Op::from_int(op)); [INFO] [stdout] ... | [INFO] [stdout] 402 | | } [INFO] [stdout] 403 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 404 | [INFO] [stdout] 405 | println!("{:?}", memory.get::<[u8; 32]>(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_str` [INFO] [stdout] --> src/op_code.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/op_code.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | / dense_enum! { Op; [INFO] [stdout] 39 | | // misc [INFO] [stdout] 40 | | NOP, XIT, [INFO] [stdout] 41 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | EXT, [INFO] [stdout] 72 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MB` [INFO] [stdout] --> src/memory.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const MB:usize = KB * KB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_page` [INFO] [stdout] --> src/memory.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free_page` [INFO] [stdout] --> src/memory.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_addr` [INFO] [stdout] --> src/memory.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_addr` [INFO] [stdout] --> src/memory.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get1` [INFO] [stdout] --> src/memory.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.85s [INFO] running `Command { std: "docker" "inspect" "89f9bd5fbdd389a59224ce60aa3b0cada38fbdde81f55b0d5a629f92901f0cd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89f9bd5fbdd389a59224ce60aa3b0cada38fbdde81f55b0d5a629f92901f0cd2", kill_on_drop: false }` [INFO] [stdout] 89f9bd5fbdd389a59224ce60aa3b0cada38fbdde81f55b0d5a629f92901f0cd2