[INFO] cloning repository https://github.com/foophoof/risc-v-emulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/foophoof/risc-v-emulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoophoof%2Frisc-v-emulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffoophoof%2Frisc-v-emulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eecc052bab7cb9dda2850cb91909dc6504a3a3c9 [INFO] testing foophoof/risc-v-emulator 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%2Ffoophoof%2Frisc-v-emulator" "/workspace/builds/worker-73/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-73/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/foophoof/risc-v-emulator 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] started tweaking git repo https://github.com/foophoof/risc-v-emulator [INFO] finished tweaking git repo https://github.com/foophoof/risc-v-emulator [INFO] tweaked toml for git repo https://github.com/foophoof/risc-v-emulator written to /workspace/builds/worker-73/source/Cargo.toml [INFO] crate git repo https://github.com/foophoof/risc-v-emulator 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 619f0ac95a62c0876368fadb430912b01914dfe531d486fa47c76fdc727e3477 [INFO] running `Command { std: "docker" "start" "-a" "619f0ac95a62c0876368fadb430912b01914dfe531d486fa47c76fdc727e3477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "619f0ac95a62c0876368fadb430912b01914dfe531d486fa47c76fdc727e3477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "619f0ac95a62c0876368fadb430912b01914dfe531d486fa47c76fdc727e3477", kill_on_drop: false }` [INFO] [stdout] 619f0ac95a62c0876368fadb430912b01914dfe531d486fa47c76fdc727e3477 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 218ae2b7298ad80c27db2c0ac8b5bfce15bebcffecff99a35cd48189dc3be7ba [INFO] running `Command { std: "docker" "start" "-a" "218ae2b7298ad80c27db2c0ac8b5bfce15bebcffecff99a35cd48189dc3be7ba", kill_on_drop: false }` [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling elf v0.0.10 [INFO] [stderr] Compiling risc-v-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | 0x700...0x702 => 0, [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 2015) 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/cpu.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | 0x704...0x706 => 0, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/cpu.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | 0x708...0x70A => 0, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/cpu.rs:56:45 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_instruction(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 - fn get_instruction(&self) -> Option> { [INFO] [stdout] 56 + fn get_instruction(&self) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:20:46 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn parse(instruction: u32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - pub fn parse(instruction: u32) -> Option> { [INFO] [stdout] 20 + pub fn parse(instruction: u32) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:22:76 [INFO] [stdout] | [INFO] [stdout] 22 | 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 22 + 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:25:77 [INFO] [stdout] | [INFO] [stdout] 25 | 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 25 + 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:26:77 [INFO] [stdout] | [INFO] [stdout] 26 | 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 26 + 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:27:77 [INFO] [stdout] | [INFO] [stdout] 27 | 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 27 + 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:33:78 [INFO] [stdout] | [INFO] [stdout] 33 | rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stdout] 33 + rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:35:82 [INFO] [stdout] | [INFO] [stdout] 35 | 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 - 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 35 + 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:39:75 [INFO] [stdout] | [INFO] [stdout] 39 | 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 39 - 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 39 + 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:45:78 [INFO] [stdout] | [INFO] [stdout] 45 | 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 45 + 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:46:76 [INFO] [stdout] | [INFO] [stdout] 46 | 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 - 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 46 + 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:47:75 [INFO] [stdout] | [INFO] [stdout] 47 | 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 47 - 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 47 + 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/cpu.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn set_csr(&mut self, csr: u16, value: u32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mepc` [INFO] [stdout] --> src/cpu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | mepc: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_csr` [INFO] [stdout] --> src/cpu.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_csr(&self, csr: u16) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_csr` [INFO] [stdout] --> src/cpu.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn set_csr(&mut self, csr: u16, value: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 25.76s [INFO] running `Command { std: "docker" "inspect" "218ae2b7298ad80c27db2c0ac8b5bfce15bebcffecff99a35cd48189dc3be7ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "218ae2b7298ad80c27db2c0ac8b5bfce15bebcffecff99a35cd48189dc3be7ba", kill_on_drop: false }` [INFO] [stdout] 218ae2b7298ad80c27db2c0ac8b5bfce15bebcffecff99a35cd48189dc3be7ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43890675aa1bc782e70e1a57222d467c685af6f96d8f91153d6ce33be43cce57 [INFO] running `Command { std: "docker" "start" "-a" "43890675aa1bc782e70e1a57222d467c685af6f96d8f91153d6ce33be43cce57", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling risc-v-emulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cpu.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | 0x700...0x702 => 0, [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 2015) 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/cpu.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | 0x704...0x706 => 0, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/cpu.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | 0x708...0x70A => 0, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/cpu.rs:56:45 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_instruction(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 - fn get_instruction(&self) -> Option> { [INFO] [stdout] 56 + fn get_instruction(&self) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:20:46 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn parse(instruction: u32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - pub fn parse(instruction: u32) -> Option> { [INFO] [stdout] 20 + pub fn parse(instruction: u32) -> Option> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:22:76 [INFO] [stdout] | [INFO] [stdout] 22 | 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 22 + 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:25:77 [INFO] [stdout] | [INFO] [stdout] 25 | 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 25 + 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:26:77 [INFO] [stdout] | [INFO] [stdout] 26 | 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 26 + 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:27:77 [INFO] [stdout] | [INFO] [stdout] 27 | 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 27 + 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:33:78 [INFO] [stdout] | [INFO] [stdout] 33 | rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stdout] 33 + rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:35:82 [INFO] [stdout] | [INFO] [stdout] 35 | 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 - 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 35 + 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:39:75 [INFO] [stdout] | [INFO] [stdout] 39 | 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 39 - 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 39 + 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:45:78 [INFO] [stdout] | [INFO] [stdout] 45 | 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 45 + 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:46:76 [INFO] [stdout] | [INFO] [stdout] 46 | 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 - 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 46 + 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/instruction/mod.rs:47:75 [INFO] [stdout] | [INFO] [stdout] 47 | 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 47 - 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] 47 + 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/cpu.rs:85:41 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn set_csr(&mut self, csr: u16, value: u32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mepc` [INFO] [stdout] --> src/cpu.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | mepc: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_csr` [INFO] [stdout] --> src/cpu.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_csr(&self, csr: u16) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_csr` [INFO] [stdout] --> src/cpu.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn set_csr(&mut self, csr: u16, value: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.91s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/risc_v_emulator-eecba1fa38c0f5c5) [INFO] running `Command { std: "docker" "inspect" "43890675aa1bc782e70e1a57222d467c685af6f96d8f91153d6ce33be43cce57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43890675aa1bc782e70e1a57222d467c685af6f96d8f91153d6ce33be43cce57", kill_on_drop: false }` [INFO] [stdout] 43890675aa1bc782e70e1a57222d467c685af6f96d8f91153d6ce33be43cce57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b93419bdcf7aa4d2937ea28dc5a36153ca318230cd3b0f6b0d481d7f45ee7130 [INFO] running `Command { std: "docker" "start" "-a" "b93419bdcf7aa4d2937ea28dc5a36153ca318230cd3b0f6b0d481d7f45ee7130", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/cpu.rs:75:18 [INFO] [stderr] | [INFO] [stderr] 75 | 0x700...0x702 => 0, [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 2015) 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/cpu.rs:76:18 [INFO] [stderr] | [INFO] [stderr] 76 | 0x704...0x706 => 0, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) 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/cpu.rs:77:18 [INFO] [stderr] | [INFO] [stderr] 77 | 0x708...0x70A => 0, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/cpu.rs:56:45 [INFO] [stderr] | [INFO] [stderr] 56 | fn get_instruction(&self) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 56 - fn get_instruction(&self) -> Option> { [INFO] [stderr] 56 + fn get_instruction(&self) -> Option> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:20:46 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn parse(instruction: u32) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 20 - pub fn parse(instruction: u32) -> Option> { [INFO] [stderr] 20 + pub fn parse(instruction: u32) -> Option> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:22:76 [INFO] [stderr] | [INFO] [stderr] 22 | 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 22 - 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 22 + 0x03 => rv32i::Load::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:25:77 [INFO] [stderr] | [INFO] [stderr] 25 | 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 25 - 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 25 + 0x13 => rv32i::OpImm::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:26:77 [INFO] [stderr] | [INFO] [stderr] 26 | 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 26 - 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 26 + 0x17 => rv32i::Auipc::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:27:77 [INFO] [stderr] | [INFO] [stderr] 27 | 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 27 - 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 27 + 0x23 => rv32i::Store::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:33:78 [INFO] [stderr] | [INFO] [stderr] 33 | rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 33 - rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stderr] 33 + rv32i::Op::parse(instruction).map(|i| Box::new(i) as Box) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:35:82 [INFO] [stderr] | [INFO] [stderr] 35 | 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 35 - 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 35 + 0x01 => rv32m::Op::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:39:75 [INFO] [stderr] | [INFO] [stderr] 39 | 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 39 - 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 39 + 0x37 => rv32i::Lui::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:45:78 [INFO] [stderr] | [INFO] [stderr] 45 | 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 45 - 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 45 + 0x63 => rv32i::Branch::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:46:76 [INFO] [stderr] | [INFO] [stderr] 46 | 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 46 - 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 46 + 0x67 => rv32i::Jalr::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/instruction/mod.rs:47:75 [INFO] [stderr] | [INFO] [stderr] 47 | 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 47 - 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] 47 + 0x6F => rv32i::Jal::parse(instruction).map(|i| Box::new(i) as Box), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/cpu.rs:85:41 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn set_csr(&mut self, csr: u16, value: u32) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `mepc` [INFO] [stderr] --> src/cpu.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | mepc: u32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_csr` [INFO] [stderr] --> src/cpu.rs:72:12 [INFO] [stderr] | [INFO] [stderr] 72 | pub fn get_csr(&self, csr: u16) -> u32 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_csr` [INFO] [stderr] --> src/cpu.rs:85:12 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn set_csr(&mut self, csr: u16, value: u32) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `risc-v-emulator` (bin "risc-v-emulator" test) generated 19 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/risc_v_emulator-eecba1fa38c0f5c5) [INFO] [stdout] [INFO] [stdout] running 29 tests [INFO] [stdout] test instruction::rv32i::control_transfer::tests::test_beq ... ok [INFO] [stdout] test instruction::rv32i::control_transfer::tests::test_bgeu ... ok [INFO] [stdout] test instruction::rv32i::control_transfer::tests::test_blt ... ok [INFO] [stdout] test instruction::rv32i::control_transfer::tests::test_bltu ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_add ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_addi ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_andi ... ok [INFO] [stdout] test instruction::rv32i::control_transfer::tests::test_bne ... ok [INFO] [stdout] test instruction::rv32i::control_transfer::tests::test_bge ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_lui ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_sll ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_slli ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_ori ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_slti ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_sltiu ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_sra ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_srai ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_srl ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_srli ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_sub ... ok [INFO] [stdout] test instruction::rv32i::int_compute::tests::test_xori ... ok [INFO] [stdout] test instruction::rv32m::tests::test_div ... ok [INFO] [stdout] test instruction::rv32m::tests::test_divu ... ok [INFO] [stdout] test instruction::rv32m::tests::test_mul ... ok [INFO] [stdout] test instruction::rv32m::tests::test_mulh ... ok [INFO] [stdout] test instruction::rv32m::tests::test_mulhsu ... ok [INFO] [stdout] test instruction::rv32m::tests::test_rem ... ok [INFO] [stdout] test instruction::rv32m::tests::test_remu ... ok [INFO] [stdout] test instruction::rv32m::tests::test_mulhu ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b93419bdcf7aa4d2937ea28dc5a36153ca318230cd3b0f6b0d481d7f45ee7130", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b93419bdcf7aa4d2937ea28dc5a36153ca318230cd3b0f6b0d481d7f45ee7130", kill_on_drop: false }` [INFO] [stdout] b93419bdcf7aa4d2937ea28dc5a36153ca318230cd3b0f6b0d481d7f45ee7130