[INFO] cloning repository https://github.com/Soya-Onishi/rust-riscv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Soya-Onishi/rust-riscv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoya-Onishi%2Frust-riscv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoya-Onishi%2Frust-riscv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a2451d33aa91afb2bc9b78e2db2b532a93e184c [INFO] checking Soya-Onishi/rust-riscv against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoya-Onishi%2Frust-riscv" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Soya-Onishi/rust-riscv on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Soya-Onishi/rust-riscv [INFO] finished tweaking git repo https://github.com/Soya-Onishi/rust-riscv [INFO] tweaked toml for git repo https://github.com/Soya-Onishi/rust-riscv written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 26 packages to latest compatible versions [INFO] [stderr] Adding getrandom v0.1.16 (latest: v0.2.15) [INFO] [stderr] Adding goblin v0.2.3 (latest: v0.8.2) [INFO] [stderr] Adding num-bigint v0.2.6 (latest: v0.4.6) [INFO] [stderr] Adding paste v0.1.18 (latest: v1.0.15) [INFO] [stderr] Adding rand v0.7.3 (latest: v0.8.5) [INFO] [stderr] Adding rand_chacha v0.2.2 (latest: v0.3.1) [INFO] [stderr] Adding rand_core v0.5.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_hc v0.2.0 (latest: v0.3.2) [INFO] [stderr] Adding scroll v0.10.2 (latest: v0.12.0) [INFO] [stderr] Adding scroll_derive v0.10.5 (latest: v0.12.0) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.72) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1fd2ad7d69401b2d579466adf2d8fa601e5022c33c415f9e2c26fed410134fe3 [INFO] running `Command { std: "docker" "start" "-a" "1fd2ad7d69401b2d579466adf2d8fa601e5022c33c415f9e2c26fed410134fe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1fd2ad7d69401b2d579466adf2d8fa601e5022c33c415f9e2c26fed410134fe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fd2ad7d69401b2d579466adf2d8fa601e5022c33c415f9e2c26fed410134fe3", kill_on_drop: false }` [INFO] [stdout] 1fd2ad7d69401b2d579466adf2d8fa601e5022c33c415f9e2c26fed410134fe3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 080af2335c820f5c176cbcdfd051c4f21839a8b78bbac0e6f973f2c3e40ab3ec [INFO] running `Command { std: "docker" "start" "-a" "080af2335c820f5c176cbcdfd051c4f21839a8b78bbac0e6f973f2c3e40ab3ec", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling scroll_derive v0.10.5 [INFO] [stderr] Checking scroll v0.10.2 [INFO] [stderr] Checking goblin v0.2.3 [INFO] [stderr] Checking rust-riscv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Emulator` is never constructed [INFO] [stdout] --> src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Emulator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lib.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Emulator { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new_with_elf_file(filename: String) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn new_with_binary(binary: Vec) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn make_core(elf: &Elf, binary: &Vec) -> core::Core { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_label(elf: &Elf) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn step(&mut self, num: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn is_breakpoint(&self, pc: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn set_breakpoint_with_string(&mut self, label: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn set_breakpoint_with_addr(&mut self, addr: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorMsg` is never constructed [INFO] [stdout] --> src/lib.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | struct ErrorMsg { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 131 | impl ErrorMsg { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 132 | pub fn new(msg: String) -> ErrorMsg { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MADD` is never used [INFO] [stdout] --> src/util/instruction.rs:744:7 [INFO] [stdout] | [INFO] [stdout] 744 | const MADD: u32 = 0b1000011; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOAD_FP` is never used [INFO] [stdout] --> src/util/instruction.rs:747:7 [INFO] [stdout] | [INFO] [stdout] 747 | const LOAD_FP: u32 = 0b0000111; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STORE_FP` is never used [INFO] [stdout] --> src/util/instruction.rs:748:7 [INFO] [stdout] | [INFO] [stdout] 748 | const STORE_FP: u32 = 0b0100111; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MSUB` is never used [INFO] [stdout] --> src/util/instruction.rs:749:7 [INFO] [stdout] | [INFO] [stdout] 749 | const MSUB: u32 = 0b1000111; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_0` is never used [INFO] [stdout] --> src/util/instruction.rs:752:7 [INFO] [stdout] | [INFO] [stdout] 752 | const CUSTOM_0: u32 = 0b0001011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_1` is never used [INFO] [stdout] --> src/util/instruction.rs:753:7 [INFO] [stdout] | [INFO] [stdout] 753 | const CUSTOM_1: u32 = 0b0101011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NMSUM` is never used [INFO] [stdout] --> src/util/instruction.rs:754:7 [INFO] [stdout] | [INFO] [stdout] 754 | const NMSUM: u32 = 0b1001011; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NMADD` is never used [INFO] [stdout] --> src/util/instruction.rs:759:7 [INFO] [stdout] | [INFO] [stdout] 759 | const NMADD: u32 = 0b1001111; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_FP` is never used [INFO] [stdout] --> src/util/instruction.rs:764:7 [INFO] [stdout] | [INFO] [stdout] 764 | const OP_FP: u32 = 0b1010011; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_IMM_32` is never used [INFO] [stdout] --> src/util/instruction.rs:772:7 [INFO] [stdout] | [INFO] [stdout] 772 | const OP_IMM_32: u32 = 0b0011011; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_32` is never used [INFO] [stdout] --> src/util/instruction.rs:773:7 [INFO] [stdout] | [INFO] [stdout] 773 | const OP_32: u32 = 0b0111011; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_2` is never used [INFO] [stdout] --> src/util/instruction.rs:774:7 [INFO] [stdout] | [INFO] [stdout] 774 | const CUSTOM_2: u32 = 0b1011011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_3` is never used [INFO] [stdout] --> src/util/instruction.rs:775:7 [INFO] [stdout] | [INFO] [stdout] 775 | const CUSTOM_3: u32 = 0b1111011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | core.mmu.write_u8(exec_addr + index, bin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = core.mmu.write_u8(exec_addr + index, bin); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | tpe => panic!(make_panic_msg(tpe, "rs1")) [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: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 27 | tpe => panic!("{}", make_panic_msg(tpe, "rs1")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | tpe => panic!(make_panic_msg(tpe, "rs2")) [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 36 | tpe => panic!("{}", make_panic_msg(tpe, "rs2")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | tpe => panic!(make_panic_msg(tpe, "rd")) [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 46 | tpe => panic!("{}", make_panic_msg(tpe, "rd")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | panic!(make_panic_msg(EncodeType::RType, "imm")), [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 53 | panic!("{}", make_panic_msg(EncodeType::RType, "imm")), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let mut emu = Emulator::new_with_elf_file("test_bin/rv32ui-p-add".to_string()).unwrap(); [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: fields `elf_bin` and `labels` are never read [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Emulator { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 15 | core: core::Core, [INFO] [stdout] 16 | elf_bin: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | breakpoints: Vec, [INFO] [stdout] 18 | labels: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `step`, `set_breakpoint_with_string`, and `set_breakpoint_with_addr` are never used [INFO] [stdout] --> src/lib.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Emulator { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn step(&mut self, num: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn set_breakpoint_with_string(&mut self, label: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn set_breakpoint_with_addr(&mut self, addr: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MADD` is never used [INFO] [stdout] --> src/util/instruction.rs:744:7 [INFO] [stdout] | [INFO] [stdout] 744 | const MADD: u32 = 0b1000011; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOAD_FP` is never used [INFO] [stdout] --> src/util/instruction.rs:747:7 [INFO] [stdout] | [INFO] [stdout] 747 | const LOAD_FP: u32 = 0b0000111; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STORE_FP` is never used [INFO] [stdout] --> src/util/instruction.rs:748:7 [INFO] [stdout] | [INFO] [stdout] 748 | const STORE_FP: u32 = 0b0100111; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MSUB` is never used [INFO] [stdout] --> src/util/instruction.rs:749:7 [INFO] [stdout] | [INFO] [stdout] 749 | const MSUB: u32 = 0b1000111; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_0` is never used [INFO] [stdout] --> src/util/instruction.rs:752:7 [INFO] [stdout] | [INFO] [stdout] 752 | const CUSTOM_0: u32 = 0b0001011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_1` is never used [INFO] [stdout] --> src/util/instruction.rs:753:7 [INFO] [stdout] | [INFO] [stdout] 753 | const CUSTOM_1: u32 = 0b0101011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NMSUM` is never used [INFO] [stdout] --> src/util/instruction.rs:754:7 [INFO] [stdout] | [INFO] [stdout] 754 | const NMSUM: u32 = 0b1001011; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NMADD` is never used [INFO] [stdout] --> src/util/instruction.rs:759:7 [INFO] [stdout] | [INFO] [stdout] 759 | const NMADD: u32 = 0b1001111; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_FP` is never used [INFO] [stdout] --> src/util/instruction.rs:764:7 [INFO] [stdout] | [INFO] [stdout] 764 | const OP_FP: u32 = 0b1010011; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_IMM_32` is never used [INFO] [stdout] --> src/util/instruction.rs:772:7 [INFO] [stdout] | [INFO] [stdout] 772 | const OP_IMM_32: u32 = 0b0011011; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OP_32` is never used [INFO] [stdout] --> src/util/instruction.rs:773:7 [INFO] [stdout] | [INFO] [stdout] 773 | const OP_32: u32 = 0b0111011; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_2` is never used [INFO] [stdout] --> src/util/instruction.rs:774:7 [INFO] [stdout] | [INFO] [stdout] 774 | const CUSTOM_2: u32 = 0b1011011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM_3` is never used [INFO] [stdout] --> src/util/instruction.rs:775:7 [INFO] [stdout] | [INFO] [stdout] 775 | const CUSTOM_3: u32 = 0b1111011; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | core.mmu.write_u8(exec_addr + index, bin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = core.mmu.write_u8(exec_addr + index, bin); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | tpe => panic!(make_panic_msg(tpe, "rs1")) [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: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 27 | tpe => panic!("{}", make_panic_msg(tpe, "rs1")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:36:27 [INFO] [stdout] | [INFO] [stdout] 36 | tpe => panic!(make_panic_msg(tpe, "rs2")) [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 36 | tpe => panic!("{}", make_panic_msg(tpe, "rs2")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | tpe => panic!(make_panic_msg(tpe, "rd")) [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 46 | tpe => panic!("{}", make_panic_msg(tpe, "rd")) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util/instruction.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | panic!(make_panic_msg(EncodeType::RType, "imm")), [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] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 53 | panic!("{}", make_panic_msg(EncodeType::RType, "imm")), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.99s [INFO] running `Command { std: "docker" "inspect" "080af2335c820f5c176cbcdfd051c4f21839a8b78bbac0e6f973f2c3e40ab3ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "080af2335c820f5c176cbcdfd051c4f21839a8b78bbac0e6f973f2c3e40ab3ec", kill_on_drop: false }` [INFO] [stdout] 080af2335c820f5c176cbcdfd051c4f21839a8b78bbac0e6f973f2c3e40ab3ec [INFO] checking Soya-Onishi/rust-riscv against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoya-Onishi%2Frust-riscv" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Soya-Onishi/rust-riscv on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Soya-Onishi/rust-riscv [INFO] finished tweaking git repo https://github.com/Soya-Onishi/rust-riscv [INFO] tweaked toml for git repo https://github.com/Soya-Onishi/rust-riscv written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 26 packages to latest compatible versions [INFO] [stderr] Adding getrandom v0.1.16 (latest: v0.2.15) [INFO] [stderr] Adding goblin v0.2.3 (latest: v0.8.2) [INFO] [stderr] Adding num-bigint v0.2.6 (latest: v0.4.6) [INFO] [stderr] Adding paste v0.1.18 (latest: v1.0.15) [INFO] [stderr] Adding rand v0.7.3 (latest: v0.8.5) [INFO] [stderr] Adding rand_chacha v0.2.2 (latest: v0.3.1) [INFO] [stderr] Adding rand_core v0.5.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_hc v0.2.0 (latest: v0.3.2) [INFO] [stderr] Adding scroll v0.10.2 (latest: v0.12.0) [INFO] [stderr] Adding scroll_derive v0.10.5 (latest: v0.12.0) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.72) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 023083aef42581b5adce0153d331167d3a46799b442d097a2c397b1fe30e1c4a [INFO] running `Command { std: "docker" "start" "-a" "023083aef42581b5adce0153d331167d3a46799b442d097a2c397b1fe30e1c4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "023083aef42581b5adce0153d331167d3a46799b442d097a2c397b1fe30e1c4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "023083aef42581b5adce0153d331167d3a46799b442d097a2c397b1fe30e1c4a", kill_on_drop: false }` [INFO] [stdout] 023083aef42581b5adce0153d331167d3a46799b442d097a2c397b1fe30e1c4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5679a7b437de2a7008932226c8c96ee6cc797d17eb7266d08010ffe48d816a42 [INFO] running `Command { std: "docker" "start" "-a" "5679a7b437de2a7008932226c8c96ee6cc797d17eb7266d08010ffe48d816a42", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 841 | impl_integer_for_isize!(i8, test_integer_i8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 842 | impl_integer_for_isize!(i16, test_integer_i16); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 843 | impl_integer_for_isize!(i32, test_integer_i32); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 844 | impl_integer_for_isize!(i64, test_integer_i64); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 845 | impl_integer_for_isize!(i128, test_integer_i128); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 846 | impl_integer_for_isize!(isize, test_integer_isize); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand v0.7.3 [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `num-integer` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "5679a7b437de2a7008932226c8c96ee6cc797d17eb7266d08010ffe48d816a42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5679a7b437de2a7008932226c8c96ee6cc797d17eb7266d08010ffe48d816a42", kill_on_drop: false }` [INFO] [stdout] 5679a7b437de2a7008932226c8c96ee6cc797d17eb7266d08010ffe48d816a42