[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] testing ear7h/mvm against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fear7h%2Fmvm" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ear7h/mvm on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-9/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-9/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" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] 48afe17d00ff202c1e73919dcc6a259760b64fc285a758549c492da8010928ea [INFO] running `Command { std: "docker" "start" "-a" "48afe17d00ff202c1e73919dcc6a259760b64fc285a758549c492da8010928ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48afe17d00ff202c1e73919dcc6a259760b64fc285a758549c492da8010928ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48afe17d00ff202c1e73919dcc6a259760b64fc285a758549c492da8010928ea", kill_on_drop: false }` [INFO] [stdout] 48afe17d00ff202c1e73919dcc6a259760b64fc285a758549c492da8010928ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", 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] 3b2ebbe7a92a064fef8b7e507a81c8fe6bebfd110ca45143f0c82607b49313b0 [INFO] running `Command { std: "docker" "start" "-a" "3b2ebbe7a92a064fef8b7e507a81c8fe6bebfd110ca45143f0c82607b49313b0", kill_on_drop: false }` [INFO] [stderr] Compiling mvm v0.1.0 (/opt/rustwide/workdir) [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: 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] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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: panic message is not a string literal [INFO] [stdout] --> src/mvm.rs:400:28 [INFO] [stdout] | [INFO] [stdout] 400 | code => panic!(format!("{:?} not implemented", code)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 400 - code => panic!(format!("{:?} not implemented", code)), [INFO] [stdout] 400 + code => panic!("{:?} not implemented", code), [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 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:13 [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/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] = note: `#[warn(unused_mut)]` on by default [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] [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: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 79 | panic!(format!("root is not AstNode::Tree, got {:?}", root)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 79 - panic!(format!("root is not AstNode::Tree, got {:?}", root)) [INFO] [stdout] 79 + panic!("root is not AstNode::Tree, got {:?}", root) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:205:25 [INFO] [stdout] | [INFO] [stdout] 205 | _ => panic!(format!("no offset for {}", self)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 205 - _ => panic!(format!("no offset for {}", self)) [INFO] [stdout] 205 + _ => panic!("no offset for {}", self) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:308:32 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 308 - _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stdout] 308 + _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:401:25 [INFO] [stdout] | [INFO] [stdout] 401 | _ => panic!(format!("unknown command {:?}", self)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 401 - _ => panic!(format!("unknown command {:?}", self)), [INFO] [stdout] 401 + _ => panic!("unknown command {:?}", self), [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: 10 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 3.26s [INFO] running `Command { std: "docker" "inspect" "3b2ebbe7a92a064fef8b7e507a81c8fe6bebfd110ca45143f0c82607b49313b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b2ebbe7a92a064fef8b7e507a81c8fe6bebfd110ca45143f0c82607b49313b0", kill_on_drop: false }` [INFO] [stdout] 3b2ebbe7a92a064fef8b7e507a81c8fe6bebfd110ca45143f0c82607b49313b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2d81c8fdd8918c6c057c413734fea38d04463defe8b4bcb1b17e7033287d2b90 [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" "2d81c8fdd8918c6c057c413734fea38d04463defe8b4bcb1b17e7033287d2b90", kill_on_drop: false }` [INFO] [stderr] Compiling 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] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [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 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:13 [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/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] = note: `#[warn(unused_mut)]` on by default [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] [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: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 79 | panic!(format!("root is not AstNode::Tree, got {:?}", root)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 79 - panic!(format!("root is not AstNode::Tree, got {:?}", root)) [INFO] [stdout] 79 + panic!("root is not AstNode::Tree, got {:?}", root) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:205:25 [INFO] [stdout] | [INFO] [stdout] 205 | _ => panic!(format!("no offset for {}", self)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 205 - _ => panic!(format!("no offset for {}", self)) [INFO] [stdout] 205 + _ => panic!("no offset for {}", self) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:308:32 [INFO] [stdout] | [INFO] [stdout] 308 | _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 308 - _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stdout] 308 + _ => return panic!("{} does not have an op code", cmd1) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/mas.rs:401:25 [INFO] [stdout] | [INFO] [stdout] 401 | _ => panic!(format!("unknown command {:?}", self)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 401 - _ => panic!(format!("unknown command {:?}", self)), [INFO] [stdout] 401 + _ => panic!("unknown command {:?}", self), [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 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: panic message is not a string literal [INFO] [stdout] --> src/mvm.rs:400:28 [INFO] [stdout] | [INFO] [stdout] 400 | code => panic!(format!("{:?} not implemented", code)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 400 - code => panic!(format!("{:?} not implemented", code)), [INFO] [stdout] 400 + code => panic!("{:?} not implemented", code), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.73s [INFO] [stderr] Executable unittests src/mas.rs (/opt/rustwide/target/debug/deps/mas-61056800850fd091) [INFO] [stderr] Executable unittests src/mvm.rs (/opt/rustwide/target/debug/deps/mvm-ee5cff99c9cba4d8) [INFO] running `Command { std: "docker" "inspect" "2d81c8fdd8918c6c057c413734fea38d04463defe8b4bcb1b17e7033287d2b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d81c8fdd8918c6c057c413734fea38d04463defe8b4bcb1b17e7033287d2b90", kill_on_drop: false }` [INFO] [stdout] 2d81c8fdd8918c6c057c413734fea38d04463defe8b4bcb1b17e7033287d2b90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", 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] be8e895b82491afc412e268f3909db968d3697d757ba14b473e812f356992eaa [INFO] running `Command { std: "docker" "start" "-a" "be8e895b82491afc412e268f3909db968d3697d757ba14b473e812f356992eaa", kill_on_drop: false }` [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/mvm.rs:405:5 [INFO] [stderr] | [INFO] [stderr] 13 | / loop { [INFO] [stderr] 14 | | [INFO] [stderr] 15 | | let op:u8 = memory.get(pc); [INFO] [stderr] 16 | | println!("{:?}", Op::from_int(op)); [INFO] [stderr] ... | [INFO] [stderr] 402 | | } [INFO] [stderr] 403 | | } [INFO] [stderr] | |_____- any code following this expression is unreachable [INFO] [stderr] 404 | [INFO] [stderr] 405 | println!("{:?}", memory.get::<[u8; 32]>(0)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_str` [INFO] [stderr] --> src/op_code.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | / dense_enum! { Op; [INFO] [stderr] 39 | | // misc [INFO] [stderr] 40 | | NOP, XIT, [INFO] [stderr] 41 | | [INFO] [stderr] ... | [INFO] [stderr] 71 | | EXT, [INFO] [stderr] 72 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_string` [INFO] [stderr] --> src/op_code.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn from_string(s: String) -> Result<$name, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | / dense_enum! { Op; [INFO] [stderr] 39 | | // misc [INFO] [stderr] 40 | | NOP, XIT, [INFO] [stderr] 41 | | [INFO] [stderr] ... | [INFO] [stderr] 71 | | EXT, [INFO] [stderr] 72 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MB` [INFO] [stderr] --> src/memory.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | const MB:usize = KB * KB; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `alloc_page` [INFO] [stderr] --> src/memory.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn alloc_page(&mut self) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `free_page` [INFO] [stderr] --> src/memory.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn free_page(&mut self, addr:usize) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `push_addr` [INFO] [stderr] --> src/memory.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn push_addr(&mut self, addr: usize) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pop_addr` [INFO] [stderr] --> src/memory.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 61 | pub fn pop_addr(&mut self) -> usize { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get1` [INFO] [stderr] --> src/memory.rs:107:12 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn get1(&self, addr: usize) -> usize { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/mvm.rs:400:28 [INFO] [stderr] | [INFO] [stderr] 400 | code => panic!(format!("{:?} not implemented", code)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 400 - code => panic!(format!("{:?} not implemented", code)), [INFO] [stderr] 400 + code => panic!("{:?} not implemented", code), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `mvm` (bin "mvm" test) generated 10 warnings [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/mas.rs:131:1 [INFO] [stderr] | [INFO] [stderr] 131 | / /** [INFO] [stderr] 132 | | * Assembler commands. These relate to op codes in the VM, but the op [INFO] [stderr] 133 | | * codes are picked implicitly based on the arguments. [INFO] [stderr] 134 | | */ [INFO] [stderr] | |___^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/ast.rs:19:16 [INFO] [stderr] | [INFO] [stderr] 19 | '0'...'9' => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/ast.rs:175:16 [INFO] [stderr] | [INFO] [stderr] 175 | 'a'...'z' | 'A'...'Z' => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/ast.rs:175:28 [INFO] [stderr] | [INFO] [stderr] 175 | 'a'...'z' | 'A'...'Z' => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/mas.rs:308:18 [INFO] [stderr] | [INFO] [stderr] 308 | _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stderr] | ^^^^^^^---------------------------------------------------- [INFO] [stderr] | | | [INFO] [stderr] | | any code following this expression is unreachable [INFO] [stderr] | unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/mas.rs:203:28 [INFO] [stderr] | [INFO] [stderr] 203 | AsmCmd::PSHW | AsmCmd::POPW => 2, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/mas.rs:308:13 [INFO] [stderr] | [INFO] [stderr] 308 | _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ops` [INFO] [stderr] --> src/mas.rs:69:13 [INFO] [stderr] | [INFO] [stderr] 69 | let mut ops:Vec = Vec::new(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ops` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `addr` [INFO] [stderr] --> src/mas.rs:95:26 [INFO] [stderr] | [INFO] [stderr] 95 | Some(addr) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/ast.rs:38:25 [INFO] [stderr] | [INFO] [stderr] 38 | Err(x) => Value::Err(format!("bad address {}", s)) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ast.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | let mut res: Result; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/mas.rs:69:9 [INFO] [stderr] | [INFO] [stderr] 69 | let mut ops:Vec = Vec::new(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_int` [INFO] [stderr] --> src/op_code.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn from_int(i:u8) -> $name { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | / dense_enum! { Op; [INFO] [stderr] 39 | | // misc [INFO] [stderr] 40 | | NOP, XIT, [INFO] [stderr] 41 | | [INFO] [stderr] ... | [INFO] [stderr] 71 | | EXT, [INFO] [stderr] 72 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_str` [INFO] [stderr] --> src/op_code.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn to_str(&self) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | / dense_enum! { Op; [INFO] [stderr] 39 | | // misc [INFO] [stderr] 40 | | NOP, XIT, [INFO] [stderr] 41 | | [INFO] [stderr] ... | [INFO] [stderr] 71 | | EXT, [INFO] [stderr] 72 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `dense_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `KB` [INFO] [stderr] --> src/memory.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | const KB:usize = 1024; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `FAST_SIZE` [INFO] [stderr] --> src/memory.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | const FAST_SIZE: usize = 32 * KB; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `PAGE_SIZE` [INFO] [stderr] --> src/memory.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | const PAGE_SIZE: usize = 4 * KB; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Memory` [INFO] [stderr] --> src/memory.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct Memory { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/memory.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn new(code: &[u8]) -> Memory { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: associated function is never used: `get` [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/memory.rs:66:12 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 66 | pub fn get(&self, addr: usize) -> T { [INFO] [stdout] [INFO] [stderr] | ^^^ [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] running 0 tests [INFO] [stderr] warning: associated function is never used: `get2` [INFO] [stdout] [INFO] [stderr] --> src/memory.rs:111:12 [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 111 | pub fn get2(&self, addr: usize) -> [usize; 2] { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set` [INFO] [stderr] --> src/memory.rs:115:12 [INFO] [stderr] | [INFO] [stderr] 115 | pub fn set(&mut self, addr: usize, val: T) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/mas.rs:79:16 [INFO] [stderr] | [INFO] [stderr] 79 | panic!(format!("root is not AstNode::Tree, got {:?}", root)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 79 - panic!(format!("root is not AstNode::Tree, got {:?}", root)) [INFO] [stderr] 79 + panic!("root is not AstNode::Tree, got {:?}", root) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/mas.rs:205:25 [INFO] [stderr] | [INFO] [stderr] 205 | _ => panic!(format!("no offset for {}", self)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 205 - _ => panic!(format!("no offset for {}", self)) [INFO] [stderr] 205 + _ => panic!("no offset for {}", self) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/mas.rs:308:32 [INFO] [stderr] | [INFO] [stderr] 308 | _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 308 - _ => return panic!(format!("{} does not have an op code", cmd1)) [INFO] [stderr] 308 + _ => return panic!("{} does not have an op code", cmd1) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/mas.rs:401:25 [INFO] [stderr] | [INFO] [stderr] 401 | _ => panic!(format!("unknown command {:?}", self)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 401 - _ => panic!(format!("unknown command {:?}", self)), [INFO] [stderr] 401 + _ => panic!("unknown command {:?}", self), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: constant `prog2` should have an upper case name [INFO] [stderr] --> src/mas.rs:408:7 [INFO] [stderr] | [INFO] [stderr] 408 | const prog2:&str = "; program 2 [INFO] [stderr] | ^^^^^ help: convert the identifier to upper case: `PROG2` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `mvm` (bin "mas" test) generated 34 warnings (7 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/mas.rs (/opt/rustwide/target/debug/deps/mas-61056800850fd091) [INFO] [stderr] Running unittests src/mvm.rs (/opt/rustwide/target/debug/deps/mvm-ee5cff99c9cba4d8) [INFO] running `Command { std: "docker" "inspect" "be8e895b82491afc412e268f3909db968d3697d757ba14b473e812f356992eaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be8e895b82491afc412e268f3909db968d3697d757ba14b473e812f356992eaa", kill_on_drop: false }` [INFO] [stdout] be8e895b82491afc412e268f3909db968d3697d757ba14b473e812f356992eaa