[INFO] cloning repository https://github.com/kjh618/riscv-simulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kjh618/riscv-simulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkjh618%2Friscv-simulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkjh618%2Friscv-simulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c48bab72f1c7a77006b3738f72671a0b8d2d636 [INFO] checking kjh618/riscv-simulator against try#f3dc08d20a1589b87bde75bb82ee6423307f9bde for pr-135733 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkjh618%2Friscv-simulator" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kjh618/riscv-simulator on toolchain f3dc08d20a1589b87bde75bb82ee6423307f9bde [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kjh618/riscv-simulator [INFO] finished tweaking git repo https://github.com/kjh618/riscv-simulator [INFO] tweaked toml for git repo https://github.com/kjh618/riscv-simulator written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kjh618/riscv-simulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf4ae73505d2935afd62e13300981881307a6f3d8fc8d2c1f9ca63fd1fb35512 [INFO] running `Command { std: "docker" "start" "-a" "bf4ae73505d2935afd62e13300981881307a6f3d8fc8d2c1f9ca63fd1fb35512", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf4ae73505d2935afd62e13300981881307a6f3d8fc8d2c1f9ca63fd1fb35512", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf4ae73505d2935afd62e13300981881307a6f3d8fc8d2c1f9ca63fd1fb35512", kill_on_drop: false }` [INFO] [stdout] bf4ae73505d2935afd62e13300981881307a6f3d8fc8d2c1f9ca63fd1fb35512 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+f3dc08d20a1589b87bde75bb82ee6423307f9bde" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 755d7e8692851fdbcaf454e5f959a9f0fc8b5c2c3b45405d005c83e1ae6aaa55 [INFO] running `Command { std: "docker" "start" "-a" "755d7e8692851fdbcaf454e5f959a9f0fc8b5c2c3b45405d005c83e1ae6aaa55", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.42 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking riscv-simulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/ast.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Register { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 6 | pub index: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | Label(&'a str), [INFO] [stdout] | ----- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JumpTarget` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - Label(&'a str), [INFO] [stdout] 11 + Label(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Offset(i32), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JumpTarget` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - Offset(i32), [INFO] [stdout] 12 + Offset(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `base` are never read [INFO] [stdout] --> src/ast.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Address { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 17 | pub offset: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | pub base: Register, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Address` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | Lui(Register, u32), [INFO] [stdout] | --- ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 43 - Lui(Register, u32), [INFO] [stdout] 43 + Lui((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | Auipc(Register, u32), [INFO] [stdout] | ----- ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 44 - Auipc(Register, u32), [INFO] [stdout] 44 + Auipc((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | Jal(Register, JumpTarget<'a>), [INFO] [stdout] | --- ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 45 - Jal(Register, JumpTarget<'a>), [INFO] [stdout] 45 + Jal((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | Jalr(Register, Register, i32), [INFO] [stdout] | ---- ^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 46 - Jalr(Register, Register, i32), [INFO] [stdout] 46 + Jalr((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/ast.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | Branch(BranchCondition, Register, Register, JumpTarget<'a>), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 47 - Branch(BranchCondition, Register, Register, JumpTarget<'a>), [INFO] [stdout] 47 + Branch((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | Load(LoadWidth, Register, Address), [INFO] [stdout] | ---- ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 48 - Load(LoadWidth, Register, Address), [INFO] [stdout] 48 + Load((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | Store(StoreWidth, Register, Address), [INFO] [stdout] | ----- ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 49 - Store(StoreWidth, Register, Address), [INFO] [stdout] 49 + Store((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/ast.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | IntegerImmediate(IntegerImmediateOperation, Register, Register, i32), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 50 - IntegerImmediate(IntegerImmediateOperation, Register, Register, i32), [INFO] [stdout] 50 + IntegerImmediate((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/ast.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | IntegerRegister(IntegerRegisterOperation, Register, Register, Register), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 51 - IntegerRegister(IntegerRegisterOperation, Register, Register, Register), [INFO] [stdout] 51 + IntegerRegister((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `memory` is never read [INFO] [stdout] --> src/simulator.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | struct DataMemory { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | memory: [u8; DataMemory::SIZE], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataMemory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pc`, `register`, `instruction_memory`, `data_memory`, and `label_to_address` are never read [INFO] [stdout] --> src/simulator.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct State<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 23 | pc: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 24 | register: RegisterFile, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | instruction_memory: InstructionMemory<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | data_memory: DataMemory, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | label_to_address: HashMap<&'a str, u32>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `translate`, `load`, and `store` are never used [INFO] [stdout] --> src/simulator.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl DataMemory { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | fn translate(address: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn load(&self, byte_enable: u8, address: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn store(&mut self, byte_enable: u8, address: u32, value: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `address_add_offset` and `next` are never used [INFO] [stdout] --> src/simulator.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 133 | impl<'a> State<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | fn address_add_offset(address: u32, offset: i32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn next(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `index` is never read [INFO] [stdout] --> src/ast.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Register { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 6 | pub index: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | Label(&'a str), [INFO] [stdout] | ----- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JumpTarget` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - Label(&'a str), [INFO] [stdout] 11 + Label(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Offset(i32), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `JumpTarget` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - Offset(i32), [INFO] [stdout] 12 + Offset(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `offset` and `base` are never read [INFO] [stdout] --> src/ast.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Address { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 17 | pub offset: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | pub base: Register, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Address` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | Lui(Register, u32), [INFO] [stdout] | --- ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 43 - Lui(Register, u32), [INFO] [stdout] 43 + Lui((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | Auipc(Register, u32), [INFO] [stdout] | ----- ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 44 - Auipc(Register, u32), [INFO] [stdout] 44 + Auipc((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | Jal(Register, JumpTarget<'a>), [INFO] [stdout] | --- ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 45 - Jal(Register, JumpTarget<'a>), [INFO] [stdout] 45 + Jal((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | Jalr(Register, Register, i32), [INFO] [stdout] | ---- ^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 46 - Jalr(Register, Register, i32), [INFO] [stdout] 46 + Jalr((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/ast.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | Branch(BranchCondition, Register, Register, JumpTarget<'a>), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 47 - Branch(BranchCondition, Register, Register, JumpTarget<'a>), [INFO] [stdout] 47 + Branch((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | Load(LoadWidth, Register, Address), [INFO] [stdout] | ---- ^^^^^^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 48 - Load(LoadWidth, Register, Address), [INFO] [stdout] 48 + Load((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/ast.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | Store(StoreWidth, Register, Address), [INFO] [stdout] | ----- ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 49 - Store(StoreWidth, Register, Address), [INFO] [stdout] 49 + Store((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/ast.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | IntegerImmediate(IntegerImmediateOperation, Register, Register, i32), [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 50 - IntegerImmediate(IntegerImmediateOperation, Register, Register, i32), [INFO] [stdout] 50 + IntegerImmediate((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/ast.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | IntegerRegister(IntegerRegisterOperation, Register, Register, Register), [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 51 - IntegerRegister(IntegerRegisterOperation, Register, Register, Register), [INFO] [stdout] 51 + IntegerRegister((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `memory` is never read [INFO] [stdout] --> src/simulator.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | struct DataMemory { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | memory: [u8; DataMemory::SIZE], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataMemory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pc`, `register`, `instruction_memory`, `data_memory`, and `label_to_address` are never read [INFO] [stdout] --> src/simulator.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct State<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 23 | pc: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 24 | register: RegisterFile, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | instruction_memory: InstructionMemory<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | data_memory: DataMemory, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | label_to_address: HashMap<&'a str, u32>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `translate`, `load`, and `store` are never used [INFO] [stdout] --> src/simulator.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl DataMemory { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | fn translate(address: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn load(&self, byte_enable: u8, address: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn store(&mut self, byte_enable: u8, address: u32, value: u32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `address_add_offset` and `next` are never used [INFO] [stdout] --> src/simulator.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 133 | impl<'a> State<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | fn address_add_offset(address: u32, offset: i32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn next(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.06s [INFO] running `Command { std: "docker" "inspect" "755d7e8692851fdbcaf454e5f959a9f0fc8b5c2c3b45405d005c83e1ae6aaa55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "755d7e8692851fdbcaf454e5f959a9f0fc8b5c2c3b45405d005c83e1ae6aaa55", kill_on_drop: false }` [INFO] [stdout] 755d7e8692851fdbcaf454e5f959a9f0fc8b5c2c3b45405d005c83e1ae6aaa55