[INFO] cloning repository https://github.com/teivah/vega [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teivah/vega" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteivah%2Fvega", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteivah%2Fvega'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 292d45b446d4fe1aa96dc6b16593f007948a7a89 [INFO] testing teivah/vega against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteivah%2Fvega" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/teivah/vega [INFO] finished tweaking git repo https://github.com/teivah/vega [INFO] tweaked toml for git repo https://github.com/teivah/vega written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/teivah/vega on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/teivah/vega 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded queues v1.1.0 [INFO] [stderr] Downloaded enum-map v0.6.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 288ab7e3264b78dff100ad65b31a79ed8e070ffa02bc6832939314786d65d4fa [INFO] running `Command { std: "docker" "start" "-a" "288ab7e3264b78dff100ad65b31a79ed8e070ffa02bc6832939314786d65d4fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "288ab7e3264b78dff100ad65b31a79ed8e070ffa02bc6832939314786d65d4fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "288ab7e3264b78dff100ad65b31a79ed8e070ffa02bc6832939314786d65d4fa", kill_on_drop: false }` [INFO] [stdout] 288ab7e3264b78dff100ad65b31a79ed8e070ffa02bc6832939314786d65d4fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8bcff5fe889692208a13e80fa6fd5d02513af152ed5396bd3a55cadab8dd05f7 [INFO] running `Command { std: "docker" "start" "-a" "8bcff5fe889692208a13e80fa6fd5d02513af152ed5396bd3a55cadab8dd05f7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling syn v1.0.36 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling array-macro v1.0.5 [INFO] [stderr] Compiling queues v1.1.0 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling enum-map-derive v0.4.3 [INFO] [stderr] Compiling enum-map v0.6.2 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling majorana v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/mvm3.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/mvm3.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Once` [INFO] [stdout] --> src/mvm3.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Once; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/mvm1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/mvm1.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/mvm2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/mvm2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/opcodes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/opcodes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `VirtualMachine` is never used [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | trait VirtualMachine { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_L1_ACCESS` is never used [INFO] [stdout] --> src/mvm3.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const CYCLES_L1_ACCESS: f32 = 1.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_MEMORY_ACCESS` is never used [INFO] [stdout] --> src/mvm3.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const CYCLES_MEMORY_ACCESS: f32 = 50. + CYCLES_L1_ACCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `L1I_CACHE_LINE` is never used [INFO] [stdout] --> src/mvm3.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const L1I_CACHE_LINE: i32 = 64 * 8; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mvm3` is never constructed [INFO] [stdout] --> src/mvm3.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Mvm3<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bus` is never constructed [INFO] [stdout] --> src/mvm3.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Bus { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/mvm3.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Bus { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 33 | fn new(max: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn flush(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn add(&mut self, t: Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn get(&mut self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn peek(&mut self) -> T { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn contains_element_in_buffer(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn contains_element_in_queue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn contains_element_in_entry(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn connect(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run`, `flush`, and `is_complete` are never used [INFO] [stdout] --> src/mvm3.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl<'a> Mvm3<'a> { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 114 | pub fn run(&mut self, application: &'a Application) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn flush(&mut self, pc: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn is_complete(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `log` are never used [INFO] [stdout] --> src/mvm3.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl<'a> Mvm3<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 193 | pub fn new(memory_bytes: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn log(&self, cycles: f32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `L1I` is never constructed [INFO] [stdout] --> src/mvm3.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | struct L1I { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `present` and `fetch` are never used [INFO] [stdout] --> src/mvm3.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 229 | impl L1I { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 230 | fn present(&self, pc: i32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | fn fetch(&mut self, pc: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FetchUnit` is never constructed [INFO] [stdout] --> src/mvm3.rs:239:8 [INFO] [stdout] | [INFO] [stdout] 239 | struct FetchUnit { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle`, `flush`, and `is_empty` are never used [INFO] [stdout] --> src/mvm3.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 247 | impl FetchUnit { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 248 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn cycle(&mut self, application: &Application, out_bus: &mut Bus) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | fn flush(&mut self, pc: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecodeUnit` is never constructed [INFO] [stdout] --> src/mvm3.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 302 | struct DecodeUnit {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle`, `flush`, and `is_empty` are never used [INFO] [stdout] --> src/mvm3.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 304 | impl DecodeUnit { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 305 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | fn cycle<'a>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | fn flush(&mut self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 324 | [INFO] [stdout] 325 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecuteUnit` is never constructed [INFO] [stdout] --> src/mvm3.rs:331:8 [INFO] [stdout] | [INFO] [stdout] 331 | struct ExecuteUnit<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExecutionContext` is never constructed [INFO] [stdout] --> src/mvm3.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 338 | struct ExecutionContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle`, and `is_empty` are never used [INFO] [stdout] --> src/mvm3.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 344 | impl<'a> ExecuteUnit<'a> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 345 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | fn cycle( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteUnit` is never constructed [INFO] [stdout] --> src/mvm3.rs:414:8 [INFO] [stdout] | [INFO] [stdout] 414 | struct WriteUnit {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle`, and `is_empty` are never used [INFO] [stdout] --> src/mvm3.rs:417:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl WriteUnit { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 417 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | fn cycle(&mut self, ctx: &mut Context, write_bus: &mut Bus) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BranchUnit` is never constructed [INFO] [stdout] --> src/mvm3.rs:443:8 [INFO] [stdout] | [INFO] [stdout] 443 | struct BranchUnit { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `assert`, `jump`, `conditional_branching`, and `pipeline_to_be_flushed` are never used [INFO] [stdout] --> src/mvm3.rs:449:8 [INFO] [stdout] | [INFO] [stdout] 448 | impl<'a> BranchUnit { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 449 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 456 | fn assert(&mut self, ctx: &mut Context, execute_bus: &mut Bus<&'a Box>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | fn jump(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | fn conditional_branching(&mut self, expected: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | fn pipeline_to_be_flushed(&mut self, ctx: &Context, write_bus: &Bus) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_from_low_bits` is never used [INFO] [stdout] --> src/bit.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn bytes_from_low_bits(n: i32) -> (i8, i8, i8, i8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `i32_from_bytes` is never used [INFO] [stdout] --> src/bit.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn i32_from_bytes(i1: i8, i2: i8, i3: i8, i4: i8) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_i8_bit` is never used [INFO] [stdout] --> src/bit.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn get_i8_bit(input: i8, n: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_i32_bit` is never used [INFO] [stdout] --> src/bit.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn get_i32_bit(input: i32, n: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_i8_bit` is never used [INFO] [stdout] --> src/bit.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn set_i8_bit(n: i8, i: u8) -> i8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_i32_bit` is never used [INFO] [stdout] --> src/bit.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn set_i32_bit(n: i32, i: u8) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_MEMORY_ACCESS` is never used [INFO] [stdout] --> src/mvm1.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CYCLES_MEMORY_ACCESS: f32 = 50.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_REGISTER_ACCESS` is never used [INFO] [stdout] --> src/mvm1.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const CYCLES_REGISTER_ACCESS: f32 = 1.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_DECODE` is never used [INFO] [stdout] --> src/mvm1.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const CYCLES_DECODE: f32 = 1.; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mvm1` is never constructed [INFO] [stdout] --> src/mvm1.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Mvm1 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fetch_instruction`, `decode`, and `execute` are never used [INFO] [stdout] --> src/mvm1.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Mvm1 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 32 | pub fn new(memory_bytes: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn fetch_instruction(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn decode<'a>( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn execute( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_L1_ACCESS` is never used [INFO] [stdout] --> src/mvm2.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CYCLES_L1_ACCESS: f32 = 1.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_MEMORY_ACCESS` is never used [INFO] [stdout] --> src/mvm2.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const CYCLES_MEMORY_ACCESS: f32 = 50. + CYCLES_L1_ACCESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_REGISTER_ACCESS` is never used [INFO] [stdout] --> src/mvm2.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const CYCLES_REGISTER_ACCESS: f32 = 1.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYCLES_DECODE` is never used [INFO] [stdout] --> src/mvm2.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const CYCLES_DECODE: f32 = 1.; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `L1I_SIZE` is never used [INFO] [stdout] --> src/mvm2.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const L1I_SIZE: i32 = 64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mvm2` is never constructed [INFO] [stdout] --> src/mvm2.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Mvm2 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fetch_instruction`, `present_in_l1i`, `fetch_l1i`, `decode`, and `execute` are never used [INFO] [stdout] --> src/mvm2.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Mvm2 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 35 | pub fn new(memory_bytes: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn fetch_instruction(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn present_in_l1i(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn fetch_l1i(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn decode<'a>( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn execute( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Application` is never constructed [INFO] [stdout] --> src/opcodes.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Application { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Context` is never constructed [INFO] [stdout] --> src/opcodes.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write`, `add_write_registers`, `delete_write_registers`, and `contain_written_registers` are never used [INFO] [stdout] --> src/opcodes.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Context { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 21 | pub fn new(memory_bytes: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn write(&mut self, execution: &Execution) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn add_write_registers(&mut self, registers: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn delete_write_registers(&mut self, registers: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn contain_written_registers(&mut self, registers: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Execution` is never constructed [INFO] [stdout] --> src/opcodes.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Execution { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `pc` are never used [INFO] [stdout] --> src/opcodes.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl Execution { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 64 | pub fn new(register: RegisterType, value: i32, pc: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn pc(pc: i32) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `InstructionRunner` is never used [INFO] [stdout] --> src/opcodes.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait InstructionRunner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Add` is never constructed [INFO] [stdout] --> src/opcodes.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct Add { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Addi` is never constructed [INFO] [stdout] --> src/opcodes.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Addi { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `And` is never constructed [INFO] [stdout] --> src/opcodes.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct And { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Andi` is never constructed [INFO] [stdout] --> src/opcodes.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct Andi { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Auipc` is never constructed [INFO] [stdout] --> src/opcodes.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct Auipc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Beq` is never constructed [INFO] [stdout] --> src/opcodes.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub struct Beq { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bge` is never constructed [INFO] [stdout] --> src/opcodes.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | pub struct Bge { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bgeu` is never constructed [INFO] [stdout] --> src/opcodes.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 286 | pub struct Bgeu { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blt` is never constructed [INFO] [stdout] --> src/opcodes.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 320 | pub struct Blt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bltu` is never constructed [INFO] [stdout] --> src/opcodes.rs:354:12 [INFO] [stdout] | [INFO] [stdout] 354 | pub struct Bltu { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bne` is never constructed [INFO] [stdout] --> src/opcodes.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | pub struct Bne { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Div` is never constructed [INFO] [stdout] --> src/opcodes.rs:422:12 [INFO] [stdout] | [INFO] [stdout] 422 | pub struct Div { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Jal` is never constructed [INFO] [stdout] --> src/opcodes.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 448 | pub struct Jal { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Jalr` is never constructed [INFO] [stdout] --> src/opcodes.rs:479:12 [INFO] [stdout] | [INFO] [stdout] 479 | pub struct Jalr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lui` is never constructed [INFO] [stdout] --> src/opcodes.rs:509:12 [INFO] [stdout] | [INFO] [stdout] 509 | pub struct Lui { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lb` is never constructed [INFO] [stdout] --> src/opcodes.rs:534:12 [INFO] [stdout] | [INFO] [stdout] 534 | pub struct Lb { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lh` is never constructed [INFO] [stdout] --> src/opcodes.rs:563:12 [INFO] [stdout] | [INFO] [stdout] 563 | pub struct Lh { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lw` is never constructed [INFO] [stdout] --> src/opcodes.rs:596:12 [INFO] [stdout] | [INFO] [stdout] 596 | pub struct Lw { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nop` is never constructed [INFO] [stdout] --> src/opcodes.rs:632:12 [INFO] [stdout] | [INFO] [stdout] 632 | pub struct Nop {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mul` is never constructed [INFO] [stdout] --> src/opcodes.rs:653:12 [INFO] [stdout] | [INFO] [stdout] 653 | pub struct Mul { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Or` is never constructed [INFO] [stdout] --> src/opcodes.rs:679:12 [INFO] [stdout] | [INFO] [stdout] 679 | pub struct Or { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ori` is never constructed [INFO] [stdout] --> src/opcodes.rs:705:12 [INFO] [stdout] | [INFO] [stdout] 705 | pub struct Ori { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rem` is never constructed [INFO] [stdout] --> src/opcodes.rs:731:12 [INFO] [stdout] | [INFO] [stdout] 731 | pub struct Rem { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sb` is never constructed [INFO] [stdout] --> src/opcodes.rs:757:12 [INFO] [stdout] | [INFO] [stdout] 757 | pub struct Sb { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sh` is never constructed [INFO] [stdout] --> src/opcodes.rs:785:12 [INFO] [stdout] | [INFO] [stdout] 785 | pub struct Sh { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sll` is never constructed [INFO] [stdout] --> src/opcodes.rs:816:12 [INFO] [stdout] | [INFO] [stdout] 816 | pub struct Sll { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Slli` is never constructed [INFO] [stdout] --> src/opcodes.rs:842:12 [INFO] [stdout] | [INFO] [stdout] 842 | pub struct Slli { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Slt` is never constructed [INFO] [stdout] --> src/opcodes.rs:868:12 [INFO] [stdout] | [INFO] [stdout] 868 | pub struct Slt { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sltu` is never constructed [INFO] [stdout] --> src/opcodes.rs:899:12 [INFO] [stdout] | [INFO] [stdout] 899 | pub struct Sltu { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Slti` is never constructed [INFO] [stdout] --> src/opcodes.rs:930:12 [INFO] [stdout] | [INFO] [stdout] 930 | pub struct Slti { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sra` is never constructed [INFO] [stdout] --> src/opcodes.rs:961:12 [INFO] [stdout] | [INFO] [stdout] 961 | pub struct Sra { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Srai` is never constructed [INFO] [stdout] --> src/opcodes.rs:987:12 [INFO] [stdout] | [INFO] [stdout] 987 | pub struct Srai { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Srl` is never constructed [INFO] [stdout] --> src/opcodes.rs:1013:12 [INFO] [stdout] | [INFO] [stdout] 1013 | pub struct Srl { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Srli` is never constructed [INFO] [stdout] --> src/opcodes.rs:1039:12 [INFO] [stdout] | [INFO] [stdout] 1039 | pub struct Srli { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sub` is never constructed [INFO] [stdout] --> src/opcodes.rs:1065:12 [INFO] [stdout] | [INFO] [stdout] 1065 | pub struct Sub { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sw` is never constructed [INFO] [stdout] --> src/opcodes.rs:1091:12 [INFO] [stdout] | [INFO] [stdout] 1091 | pub struct Sw { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Xor` is never constructed [INFO] [stdout] --> src/opcodes.rs:1126:12 [INFO] [stdout] | [INFO] [stdout] 1126 | pub struct Xor { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Xori` is never constructed [INFO] [stdout] --> src/opcodes.rs:1152:12 [INFO] [stdout] | [INFO] [stdout] 1152 | pub struct Xori { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_changes` is never used [INFO] [stdout] --> src/opcodes.rs:1177:4 [INFO] [stdout] | [INFO] [stdout] 1177 | fn register_changes(register: RegisterType, value: i32) -> (RegisterType, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegisterType` is never used [INFO] [stdout] --> src/opcodes.rs:1186:10 [INFO] [stdout] | [INFO] [stdout] 1186 | pub enum RegisterType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/opcodes.rs:1222:10 [INFO] [stdout] | [INFO] [stdout] 1222 | pub enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cycles_per_instruction` is never used [INFO] [stdout] --> src/opcodes.rs:1263:8 [INFO] [stdout] | [INFO] [stdout] 1263 | pub fn cycles_per_instruction(instruction_type: InstructionType) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_back` is never used [INFO] [stdout] --> src/opcodes.rs:1306:8 [INFO] [stdout] | [INFO] [stdout] 1306 | pub fn write_back(instruction_type: &InstructionType) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `jump` is never used [INFO] [stdout] --> src/opcodes.rs:1313:8 [INFO] [stdout] | [INFO] [stdout] 1313 | pub fn jump(instruction_type: &InstructionType) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditional_branching` is never used [INFO] [stdout] --> src/opcodes.rs:1320:8 [INFO] [stdout] | [INFO] [stdout] 1320 | pub fn conditional_branching(instruction_type: &InstructionType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Runner` is never constructed [INFO] [stdout] --> src/opcodes.rs:1331:8 [INFO] [stdout] | [INFO] [stdout] 1331 | struct Runner { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/opcodes.rs:1337:8 [INFO] [stdout] | [INFO] [stdout] 1336 | impl Runner { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 1337 | fn new(application: Application, memory_bytes: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1344 | fn run(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/parser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn parse(s: String) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_args` is never used [INFO] [stdout] --> src/parser.rs:341:4 [INFO] [stdout] | [INFO] [stdout] 341 | fn validate_args(expected: usize, args: &Vec<&str>, line: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_args_interval` is never used [INFO] [stdout] --> src/parser.rs:355:4 [INFO] [stdout] | [INFO] [stdout] 355 | fn validate_args_interval( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `i32` is never used [INFO] [stdout] --> src/parser.rs:375:4 [INFO] [stdout] | [INFO] [stdout] 375 | fn i32(s: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_offset_reg` is never used [INFO] [stdout] --> src/parser.rs:382:4 [INFO] [stdout] | [INFO] [stdout] 382 | fn parse_offset_reg(s: String) -> Result<(i32, RegisterType), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_register` is never used [INFO] [stdout] --> src/parser.rs:398:4 [INFO] [stdout] | [INFO] [stdout] 398 | fn parse_register(s: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.66s [INFO] running `Command { std: "docker" "inspect" "8bcff5fe889692208a13e80fa6fd5d02513af152ed5396bd3a55cadab8dd05f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bcff5fe889692208a13e80fa6fd5d02513af152ed5396bd3a55cadab8dd05f7", kill_on_drop: false }` [INFO] [stdout] 8bcff5fe889692208a13e80fa6fd5d02513af152ed5396bd3a55cadab8dd05f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e0c9c1c5987c2ed3cc76b816264bb3265fedeccbe7d0c1b61ab6d9423afa2e9d [INFO] running `Command { std: "docker" "start" "-a" "e0c9c1c5987c2ed3cc76b816264bb3265fedeccbe7d0c1b61ab6d9423afa2e9d", kill_on_drop: false }` [INFO] [stderr] Compiling majorana v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/opcodes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use core::fmt; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/mvm3.rs:555:26 [INFO] [stdout] | [INFO] [stdout] 555 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 556 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/mvm3.rs:571:26 [INFO] [stdout] | [INFO] [stdout] 571 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 572 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/mvm1.rs:118:26 [INFO] [stdout] | [INFO] [stdout] 118 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 119 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/mvm2.rs:136:26 [INFO] [stdout] | [INFO] [stdout] 136 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 137 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/opcodes.rs:1406:26 [INFO] [stdout] | [INFO] [stdout] 1406 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 1407 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/opcodes.rs:1418:26 [INFO] [stdout] | [INFO] [stdout] 1418 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 1419 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 51 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 64 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 65 | | .borrow(), [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:78:26 [INFO] [stdout] | [INFO] [stdout] 78 | .as_str() [INFO] [stdout] | __________________________^ [INFO] [stdout] 79 | | .borrow() [INFO] [stdout] | |_________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.53s [INFO] running `Command { std: "docker" "inspect" "e0c9c1c5987c2ed3cc76b816264bb3265fedeccbe7d0c1b61ab6d9423afa2e9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0c9c1c5987c2ed3cc76b816264bb3265fedeccbe7d0c1b61ab6d9423afa2e9d", kill_on_drop: false }` [INFO] [stdout] e0c9c1c5987c2ed3cc76b816264bb3265fedeccbe7d0c1b61ab6d9423afa2e9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3813dc3de58af4aff0f97153125075e6d29295abebcc2beeaf1dcbee64874cdf [INFO] running `Command { std: "docker" "start" "-a" "3813dc3de58af4aff0f97153125075e6d29295abebcc2beeaf1dcbee64874cdf", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `core::fmt` [INFO] [stderr] --> src/opcodes.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use core::fmt; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/mvm3.rs:555:26 [INFO] [stderr] | [INFO] [stderr] 555 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 556 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/mvm3.rs:571:26 [INFO] [stderr] | [INFO] [stderr] 571 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 572 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/mvm1.rs:118:26 [INFO] [stderr] | [INFO] [stderr] 118 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 119 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/mvm2.rs:136:26 [INFO] [stderr] | [INFO] [stderr] 136 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 137 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/opcodes.rs:1406:26 [INFO] [stderr] | [INFO] [stderr] 1406 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 1407 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/opcodes.rs:1418:26 [INFO] [stderr] | [INFO] [stderr] 1418 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 1419 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/main.rs:50:26 [INFO] [stderr] | [INFO] [stderr] 50 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 51 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/main.rs:64:26 [INFO] [stderr] | [INFO] [stderr] 64 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 65 | | .borrow(), [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/main.rs:78:26 [INFO] [stderr] | [INFO] [stderr] 78 | .as_str() [INFO] [stderr] | __________________________^ [INFO] [stderr] 79 | | .borrow() [INFO] [stderr] | |_________________________^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Borrow`, so calling `borrow` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: `majorana` (bin "majorana" test) generated 10 warnings (run `cargo fix --bin "majorana" --tests` to apply 10 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/majorana-ee1a6a448b575b1e) [INFO] [stdout] [INFO] [stdout] running 48 tests [INFO] [stdout] test mvm3::tests::test_pipelining_conditional_branching_false ... ok [INFO] [stdout] test mvm2::tests::test_prime_number ... ok [INFO] [stdout] test mvm3::tests::test_pipelining_conditional_branching_true ... ok [INFO] [stdout] test mvm1::tests::test_prime_number ... ok [INFO] [stdout] test mvm3::tests::test_pipelining_multiple ... ok [INFO] [stdout] test mvm3::tests::test_pipelining_jal ... ok [INFO] [stdout] test opcodes::tests::rem ... ok [INFO] [stdout] test opcodes::tests::test_add ... ok [INFO] [stdout] test opcodes::tests::test_and ... ok [INFO] [stdout] test opcodes::tests::test_andi ... ok [INFO] [stdout] test opcodes::tests::test_auipc ... ok [INFO] [stdout] test opcodes::tests::test_beq ... ok [INFO] [stdout] test opcodes::tests::test_bge ... ok [INFO] [stdout] test opcodes::tests::test_bgeu ... ok [INFO] [stdout] test opcodes::tests::test_blt ... ok [INFO] [stdout] test opcodes::tests::test_bltu ... ok [INFO] [stdout] test opcodes::tests::test_div ... ok [INFO] [stdout] test opcodes::tests::test_bne ... ok [INFO] [stdout] test opcodes::tests::test_jal ... ok [INFO] [stdout] test opcodes::tests::test_jalr ... ok [INFO] [stdout] test opcodes::tests::test_lui ... ok [INFO] [stdout] test opcodes::tests::test_mul ... ok [INFO] [stdout] test opcodes::tests::test_or ... ok [INFO] [stdout] test opcodes::tests::test_prime_number ... ok [INFO] [stdout] test opcodes::tests::test_sb_lb ... ok [INFO] [stdout] test opcodes::tests::test_sll ... ok [INFO] [stdout] test opcodes::tests::test_sh_lh ... ok [INFO] [stdout] test opcodes::tests::test_slli ... ok [INFO] [stdout] test opcodes::tests::test_sltu ... ok [INFO] [stdout] test opcodes::tests::test_slt ... ok [INFO] [stdout] test opcodes::tests::test_sra ... ok [INFO] [stdout] test opcodes::tests::test_srai ... ok [INFO] [stdout] test opcodes::tests::test_srl ... ok [INFO] [stdout] test opcodes::tests::test_srli ... ok [INFO] [stdout] test opcodes::tests::test_sub ... ok [INFO] [stdout] test opcodes::tests::test_sw_lw ... ok [INFO] [stdout] test opcodes::tests::test_xor ... ok [INFO] [stdout] test opcodes::tests::test_xori ... ok [INFO] [stdout] test opcodes::tests::test_zero ... ok [INFO] [stdout] test tests::test_mvm1_prime_number ... ok [INFO] [stdout] test mvm3::tests::test_prime_number_1109 ... ok [INFO] [stdout] test opcodes::tests::test_slti ... ok [INFO] [stdout] test tests::test_mvm2_prime_number ... ok [INFO] [stdout] test mvm3::tests::test_prime_number ... ok [INFO] [stdout] test mvm3::tests::test_pipelining_simple ... ok [INFO] [stdout] test opcodes::tests::test_ori ... ok [INFO] [stdout] test tests::test_mvm3_prime_number ... ok [INFO] [stdout] test opcodes::tests::test_addi ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 48 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3813dc3de58af4aff0f97153125075e6d29295abebcc2beeaf1dcbee64874cdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3813dc3de58af4aff0f97153125075e6d29295abebcc2beeaf1dcbee64874cdf", kill_on_drop: false }` [INFO] [stdout] 3813dc3de58af4aff0f97153125075e6d29295abebcc2beeaf1dcbee64874cdf