[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#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fear7h%2Fmvm" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ear7h/mvm on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-8/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-8/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" "+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-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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] [stdout] e5b0a1cf05600582ed9fc02e1dfd0190f7ce016b7cb645b046e398d3d02801eb [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" "e5b0a1cf05600582ed9fc02e1dfd0190f7ce016b7cb645b046e398d3d02801eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e5b0a1cf05600582ed9fc02e1dfd0190f7ce016b7cb645b046e398d3d02801eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5b0a1cf05600582ed9fc02e1dfd0190f7ce016b7cb645b046e398d3d02801eb", kill_on_drop: false }` [INFO] [stdout] e5b0a1cf05600582ed9fc02e1dfd0190f7ce016b7cb645b046e398d3d02801eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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] a15a99855c539e7d0ed6ee31f99c9b3e302e9724664481c56fe80f5869b18fc1 [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" "a15a99855c539e7d0ed6ee31f99c9b3e302e9724664481c56fe80f5869b18fc1", kill_on_drop: false }` [INFO] [stderr] Checking mvm v0.1.0 (/opt/rustwide/workdir) [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: `...` range patterns are deprecated [INFO] [stdout] --> src/ast.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | '0'...'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ast.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | 'a'...'z' | 'A'...'Z' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ast.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | 'a'...'z' | 'A'...'Z' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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: `...` range patterns are deprecated [INFO] [stdout] --> src/ast.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | '0'...'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ast.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | 'a'...'z' | 'A'...'Z' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ast.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | 'a'...'z' | 'A'...'Z' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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 a macro (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 a macro (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 a macro (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: unreachable expression [INFO] [stdout] --> src/mas.rs:308:18 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!(format!("{} 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 expression [INFO] [stdout] --> src/mas.rs:308:18 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!(format!("{} 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: 9 warnings emitted [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 a macro (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 a macro (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: 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!(format!("{} does not have an op code", cmd1)) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ops` [INFO] [stdout] --> src/mas.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut ops:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ops` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/mas.rs:95:26 [INFO] [stdout] | [INFO] [stdout] 95 | Some(addr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/ast.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | Err(x) => Value::Err(format!("bad address {}", s)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mas.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut ops:Vec = Vec::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [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!(format!("{} does not have an op code", cmd1)) [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ops` [INFO] [stdout] --> src/mas.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut ops:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ops` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/mas.rs:95:26 [INFO] [stdout] | [INFO] [stdout] 95 | Some(addr) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/ast.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | Err(x) => Value::Err(format!("bad address {}", s)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mas.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut ops:Vec = Vec::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ast.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut res: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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 a macro (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 a macro (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 a macro (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: variable does not need to be mutable [INFO] [stdout] --> src/ast.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | let mut res: Result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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 a macro (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 a macro (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 a macro (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: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.60s [INFO] running `Command { std: "docker" "inspect" "a15a99855c539e7d0ed6ee31f99c9b3e302e9724664481c56fe80f5869b18fc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a15a99855c539e7d0ed6ee31f99c9b3e302e9724664481c56fe80f5869b18fc1", kill_on_drop: false }` [INFO] [stdout] a15a99855c539e7d0ed6ee31f99c9b3e302e9724664481c56fe80f5869b18fc1