[INFO] cloning repository https://github.com/lazmond3/rust-nand2tetris
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lazmond3/rust-nand2tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flazmond3%2Frust-nand2tetris", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flazmond3%2Frust-nand2tetris'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 76b17b4665722036c42d9fa493705c3c7037b1ac
[INFO] building lazmond3/rust-nand2tetris against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flazmond3%2Frust-nand2tetris" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/lazmond3/rust-nand2tetris
[INFO] finished tweaking git repo https://github.com/lazmond3/rust-nand2tetris
[INFO] tweaked toml for git repo https://github.com/lazmond3/rust-nand2tetris written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/lazmond3/rust-nand2tetris on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/lazmond3/rust-nand2tetris 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7175f48fc34be767d26603bd276f6508ce61e47ba4d86de42d4c66ee0c1d2250
[INFO] running `Command { std: "docker" "start" "-a" "7175f48fc34be767d26603bd276f6508ce61e47ba4d86de42d4c66ee0c1d2250", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7175f48fc34be767d26603bd276f6508ce61e47ba4d86de42d4c66ee0c1d2250", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7175f48fc34be767d26603bd276f6508ce61e47ba4d86de42d4c66ee0c1d2250", kill_on_drop: false }`
[INFO] [stdout] 7175f48fc34be767d26603bd276f6508ce61e47ba4d86de42d4c66ee0c1d2250
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d13899b2e718f97ab02beb3d7d58b4b8244ce0e7bb523752138e6e1fcd758d47
[INFO] running `Command { std: "docker" "start" "-a" "d13899b2e718f97ab02beb3d7d58b4b8244ce0e7bb523752138e6e1fcd758d47", kill_on_drop: false }`
[INFO] [stderr]    Compiling nand2tetris v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `ClockState`
[INFO] [stdout]  --> src/dff.rs:2:27
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::clock::{Clock, ClockState};
[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::io::Read`
[INFO] [stdout]  --> src/ram.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::word::Word`
[INFO] [stdout]  --> src/rom.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::word::Word;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/rom.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/rom.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufRead` and `BufReader`
[INFO] [stdout]  --> src/rom.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::{BufRead, BufReader};
[INFO] [stdout]   |               ^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::char`
[INFO] [stdout]  --> src/word.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::char;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::Chars`
[INFO] [stdout]   --> src/word.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::str::Chars;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::bit::Bit`
[INFO] [stdout]  --> src/keyboard.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::bit::Bit;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::clock::Clock`
[INFO] [stdout]  --> src/keyboard.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::clock::Clock;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/keyboard.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `and` is never used
[INFO] [stdout]  --> src/and.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn and(a: Bit, b: Bit) -> Bit {
[INFO] [stdout]   |    ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `and_word` is never used
[INFO] [stdout]   --> src/and.rs:10:4
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn and_word(a: Word, b: Word) -> Word {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `easy_add` is never used
[INFO] [stdout]    --> src/word.rs:167:4
[INFO] [stdout]     |
[INFO] [stdout] 167 | fn easy_add(one: Word, other: Word) -> Word {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `word` is never read
[INFO] [stdout]  --> src/keyboard.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Keyboard {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] 8 |     word: Word,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rom` is never constructed
[INFO] [stdout]  --> src/rom.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Rom {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:66:29
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout]    = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 66 -                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[INFO] [stdout] 66 +                 _ => panic!("cannot convert to Bit from : {}", c),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FancyBox` is never constructed
[INFO] [stdout]  --> src/ownership_test.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct FancyBox(usize);
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `say` is never used
[INFO] [stdout]   --> src/ownership_test.rs:12:4
[INFO] [stdout]    |
[INFO] [stdout] 12 | fn say(u: usize) {
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `say_fancy` is never used
[INFO] [stdout]   --> src/ownership_test.rs:15:4
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn say_fancy(u: FancyBox) {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `matching` is never used
[INFO] [stdout]   --> src/keyboard.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Keyboard {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 28 |     fn matching(line: String) -> Option<Word> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `state_past` and `state_next` are never read
[INFO] [stdout]  --> src/dff.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Dff {
[INFO] [stdout]   |            --- fields in this struct
[INFO] [stdout] 5 |     state_past: Bit,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 6 |     state_next: Bit,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/rom.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Rom {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 14 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:78:29
[INFO] [stdout]    |
[INFO] [stdout] 78 |                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 78 -                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[INFO] [stdout] 78 +                 _ => panic!("cannot convert to Bit from : {}", c),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `say_mut_fancy` is never used
[INFO] [stdout]   --> src/ownership_test.rs:18:4
[INFO] [stdout]    |
[INFO] [stdout] 18 | fn say_mut_fancy(u: &FancyBox) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `input` are never used
[INFO] [stdout]   --> src/dff.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl Dff {
[INFO] [stdout]    | -------- associated items in this implementation
[INFO] [stdout] 10 |     fn new() -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     fn input(&mut self, a: Bit, clock: &Clock) {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 88 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 88 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:97:20
[INFO] [stdout]     |
[INFO] [stdout]  97 |               panic!(format!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout]  98 | |                 "range error: vector range:{} is mismatched to BIT_WIDTH:{}.",
[INFO] [stdout]  99 | |                 a.len(),
[INFO] [stdout] 100 | |                 BIT_WIDTH
[INFO] [stdout] 101 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout]  97 ~             panic!(
[INFO] [stdout]  98 |                 "range error: vector range:{} is mismatched to BIT_WIDTH:{}.",
[INFO] [stdout]  99 |                 a.len(),
[INFO] [stdout] 100 |                 BIT_WIDTH
[INFO] [stdout] 101 ~             )
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:124:20
[INFO] [stdout]     |
[INFO] [stdout] 124 |               panic!(format!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 125 | |                 "num_to_bit conversion failed: {} is out of range.",
[INFO] [stdout] 126 | |                 num
[INFO] [stdout] 127 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 124 ~             panic!(
[INFO] [stdout] 125 |                 "num_to_bit conversion failed: {} is out of range.",
[INFO] [stdout] 126 |                 num
[INFO] [stdout] 127 ~             )
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:259:20
[INFO] [stdout]     |
[INFO] [stdout] 259 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 259 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 259 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:268:20
[INFO] [stdout]     |
[INFO] [stdout] 268 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 268 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 268 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:46:20
[INFO] [stdout]    |
[INFO] [stdout] 46 |               panic!(format!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 47 | |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 48 | |                 pos, RAM_WORDS_NUM
[INFO] [stdout] 49 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 46 ~             panic!(
[INFO] [stdout] 47 |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 48 |                 pos, RAM_WORDS_NUM
[INFO] [stdout] 49 ~             )
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/ram.rs:56:40
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let file = File::open(file_name.clone()).expect(&format!("Fail to open {}", file_name));
[INFO] [stdout]    |                                        ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` 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: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:64:34
[INFO] [stdout]    |
[INFO] [stdout] 64 |                   Err(v) => panic!(format!(
[INFO] [stdout]    |  __________________________________^
[INFO] [stdout] 65 | |                     "failed to load file: {}, due to : {}",
[INFO] [stdout] 66 | |                     file_name, v
[INFO] [stdout] 67 | |                 )),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 64 ~                 Err(v) => panic!(
[INFO] [stdout] 65 |                     "failed to load file: {}, due to : {}",
[INFO] [stdout] 66 |                     file_name, v
[INFO] [stdout] 67 ~                 ),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:84:20
[INFO] [stdout]    |
[INFO] [stdout] 84 |               panic!(format!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 85 | |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 86 | |                 a.len(),
[INFO] [stdout] 87 | |                 RAM_WORDS_NUM
[INFO] [stdout] 88 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 84 ~             panic!(
[INFO] [stdout] 85 |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 86 |                 a.len(),
[INFO] [stdout] 87 |                 RAM_WORDS_NUM
[INFO] [stdout] 88 ~             )
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/ram.rs:109:20
[INFO] [stdout]     |
[INFO] [stdout] 109 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 109 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 109 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/ram.rs:117:20
[INFO] [stdout]     |
[INFO] [stdout] 117 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 117 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 117 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.62s
[INFO] running `Command { std: "docker" "inspect" "d13899b2e718f97ab02beb3d7d58b4b8244ce0e7bb523752138e6e1fcd758d47", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d13899b2e718f97ab02beb3d7d58b4b8244ce0e7bb523752138e6e1fcd758d47", kill_on_drop: false }`
[INFO] [stdout] d13899b2e718f97ab02beb3d7d58b4b8244ce0e7bb523752138e6e1fcd758d47
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6772f5674a96c2721d0470caa3732b58cf049977b699984229cad115461f3007
[INFO] running `Command { std: "docker" "start" "-a" "6772f5674a96c2721d0470caa3732b58cf049977b699984229cad115461f3007", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `ClockState`
[INFO] [stdout]  --> src/dff.rs:2:27
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::clock::{Clock, ClockState};
[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::io::Read`
[INFO] [stdout]  --> src/ram.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::word::Word`
[INFO] [stdout]  --> src/rom.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::word::Word;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/rom.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/rom.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufRead` and `BufReader`
[INFO] [stdout]  --> src/rom.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::{BufRead, BufReader};
[INFO] [stdout]   |               ^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::char`
[INFO] [stdout]  --> src/word.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::char;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::Chars`
[INFO] [stdout]   --> src/word.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::str::Chars;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::bit::Bit`
[INFO] [stdout]  --> src/keyboard.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::bit::Bit;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::clock::Clock`
[INFO] [stdout]  --> src/keyboard.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::clock::Clock;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/keyboard.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `and` is never used
[INFO] [stdout]  --> src/and.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn and(a: Bit, b: Bit) -> Bit {
[INFO] [stdout]   |    ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `and_word` is never used
[INFO] [stdout]   --> src/and.rs:10:4
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn and_word(a: Word, b: Word) -> Word {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `easy_add` is never used
[INFO] [stdout]    --> src/word.rs:167:4
[INFO] [stdout]     |
[INFO] [stdout] 167 | fn easy_add(one: Word, other: Word) -> Word {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `word` is never read
[INFO] [stdout]  --> src/keyboard.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Keyboard {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] 8 |     word: Word,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rom` is never constructed
[INFO] [stdout]  --> src/rom.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Rom {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:66:29
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout]    = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 66 -                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[INFO] [stdout] 66 +                 _ => panic!("cannot convert to Bit from : {}", c),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FancyBox` is never constructed
[INFO] [stdout]  --> src/ownership_test.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct FancyBox(usize);
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `say` is never used
[INFO] [stdout]   --> src/ownership_test.rs:12:4
[INFO] [stdout]    |
[INFO] [stdout] 12 | fn say(u: usize) {
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `say_fancy` is never used
[INFO] [stdout]   --> src/ownership_test.rs:15:4
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn say_fancy(u: FancyBox) {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `matching` is never used
[INFO] [stdout]   --> src/keyboard.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Keyboard {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 28 |     fn matching(line: String) -> Option<Word> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `state_past` and `state_next` are never read
[INFO] [stdout]  --> src/dff.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Dff {
[INFO] [stdout]   |            --- fields in this struct
[INFO] [stdout] 5 |     state_past: Bit,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 6 |     state_next: Bit,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/rom.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Rom {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 14 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:78:29
[INFO] [stdout]    |
[INFO] [stdout] 78 |                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 78 -                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[INFO] [stdout] 78 +                 _ => panic!("cannot convert to Bit from : {}", c),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `say_mut_fancy` is never used
[INFO] [stdout]   --> src/ownership_test.rs:18:4
[INFO] [stdout]    |
[INFO] [stdout] 18 | fn say_mut_fancy(u: &FancyBox) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `input` are never used
[INFO] [stdout]   --> src/dff.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl Dff {
[INFO] [stdout]    | -------- associated items in this implementation
[INFO] [stdout] 10 |     fn new() -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     fn input(&mut self, a: Bit, clock: &Clock) {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 88 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 88 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:97:20
[INFO] [stdout]     |
[INFO] [stdout]  97 |               panic!(format!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout]  98 | |                 "range error: vector range:{} is mismatched to BIT_WIDTH:{}.",
[INFO] [stdout]  99 | |                 a.len(),
[INFO] [stdout] 100 | |                 BIT_WIDTH
[INFO] [stdout] 101 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout]  97 ~             panic!(
[INFO] [stdout]  98 |                 "range error: vector range:{} is mismatched to BIT_WIDTH:{}.",
[INFO] [stdout]  99 |                 a.len(),
[INFO] [stdout] 100 |                 BIT_WIDTH
[INFO] [stdout] 101 ~             )
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:124:20
[INFO] [stdout]     |
[INFO] [stdout] 124 |               panic!(format!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 125 | |                 "num_to_bit conversion failed: {} is out of range.",
[INFO] [stdout] 126 | |                 num
[INFO] [stdout] 127 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 124 ~             panic!(
[INFO] [stdout] 125 |                 "num_to_bit conversion failed: {} is out of range.",
[INFO] [stdout] 126 |                 num
[INFO] [stdout] 127 ~             )
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:259:20
[INFO] [stdout]     |
[INFO] [stdout] 259 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 259 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 259 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:268:20
[INFO] [stdout]     |
[INFO] [stdout] 268 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 268 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 268 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:46:20
[INFO] [stdout]    |
[INFO] [stdout] 46 |               panic!(format!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 47 | |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 48 | |                 pos, RAM_WORDS_NUM
[INFO] [stdout] 49 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 46 ~             panic!(
[INFO] [stdout] 47 |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 48 |                 pos, RAM_WORDS_NUM
[INFO] [stdout] 49 ~             )
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/ram.rs:56:40
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let file = File::open(file_name.clone()).expect(&format!("Fail to open {}", file_name));
[INFO] [stdout]    |                                        ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` 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: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:64:34
[INFO] [stdout]    |
[INFO] [stdout] 64 |                   Err(v) => panic!(format!(
[INFO] [stdout]    |  __________________________________^
[INFO] [stdout] 65 | |                     "failed to load file: {}, due to : {}",
[INFO] [stdout] 66 | |                     file_name, v
[INFO] [stdout] 67 | |                 )),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 64 ~                 Err(v) => panic!(
[INFO] [stdout] 65 |                     "failed to load file: {}, due to : {}",
[INFO] [stdout] 66 |                     file_name, v
[INFO] [stdout] 67 ~                 ),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:84:20
[INFO] [stdout]    |
[INFO] [stdout] 84 |               panic!(format!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 85 | |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 86 | |                 a.len(),
[INFO] [stdout] 87 | |                 RAM_WORDS_NUM
[INFO] [stdout] 88 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 84 ~             panic!(
[INFO] [stdout] 85 |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 86 |                 a.len(),
[INFO] [stdout] 87 |                 RAM_WORDS_NUM
[INFO] [stdout] 88 ~             )
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/ram.rs:109:20
[INFO] [stdout]     |
[INFO] [stdout] 109 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 109 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 109 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/ram.rs:117:20
[INFO] [stdout]     |
[INFO] [stdout] 117 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 117 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 117 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling nand2tetris v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `ClockState`
[INFO] [stdout]  --> src/dff.rs:2:27
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::clock::{Clock, ClockState};
[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::io::Read`
[INFO] [stdout]  --> src/ram.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::word::Word`
[INFO] [stdout]  --> src/rom.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::word::Word;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/rom.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/rom.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufRead` and `BufReader`
[INFO] [stdout]  --> src/rom.rs:6:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::{BufRead, BufReader};
[INFO] [stdout]   |               ^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]   --> src/rom.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     use super::*;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::char`
[INFO] [stdout]  --> src/word.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::char;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str::Chars`
[INFO] [stdout]   --> src/word.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::str::Chars;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::bit::Bit`
[INFO] [stdout]  --> src/keyboard.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::bit::Bit;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::clock::Clock`
[INFO] [stdout]  --> src/keyboard.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::clock::Clock;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/keyboard.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rom` is never constructed
[INFO] [stdout]  --> src/rom.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Rom {
[INFO] [stdout]   |        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `word` is never read
[INFO] [stdout]  --> src/keyboard.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Keyboard {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] 8 |     word: Word,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/rom.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Rom {
[INFO] [stdout]    | -------- associated function in this implementation
[INFO] [stdout] 14 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `easy_add` is never used
[INFO] [stdout]    --> src/word.rs:167:4
[INFO] [stdout]     |
[INFO] [stdout] 167 | fn easy_add(one: Word, other: Word) -> Word {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:66:29
[INFO] [stdout]    |
[INFO] [stdout] 66 |                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout]    = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 66 -                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[INFO] [stdout] 66 +                 _ => panic!("cannot convert to Bit from : {}", c),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:46:20
[INFO] [stdout]    |
[INFO] [stdout] 46 |               panic!(format!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 47 | |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 48 | |                 pos, RAM_WORDS_NUM
[INFO] [stdout] 49 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 46 ~             panic!(
[INFO] [stdout] 47 |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 48 |                 pos, RAM_WORDS_NUM
[INFO] [stdout] 49 ~             )
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:78:29
[INFO] [stdout]    |
[INFO] [stdout] 78 |                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 78 -                 _ => panic!(format!("cannot convert to Bit from : {}", c)),
[INFO] [stdout] 78 +                 _ => panic!("cannot convert to Bit from : {}", c),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:354:24
[INFO] [stdout]     |
[INFO] [stdout] 354 |                   panic!(format!(
[INFO] [stdout]     |  ________________________^
[INFO] [stdout] 355 | |                     "failed to convert from str: {}, err: {}",
[INFO] [stdout] 356 | |                     mstr, err
[INFO] [stdout] 357 | |                 ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 354 ~                 panic!(
[INFO] [stdout] 355 |                     "failed to convert from str: {}, err: {}",
[INFO] [stdout] 356 |                     mstr, err
[INFO] [stdout] 357 ~                 )
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:371:29
[INFO] [stdout]     |
[INFO] [stdout] 371 |               Ok(v) => panic!(format!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 372 | |                 "This test should fail on : {}. : {}",
[INFO] [stdout] 373 | |                 v.to_string(),
[INFO] [stdout] 374 | |                 mstr
[INFO] [stdout] 375 | |             )),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 371 ~             Ok(v) => panic!(
[INFO] [stdout] 372 |                 "This test should fail on : {}. : {}",
[INFO] [stdout] 373 |                 v.to_string(),
[INFO] [stdout] 374 |                 mstr
[INFO] [stdout] 375 ~             ),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/word.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 88 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 88 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:97:20
[INFO] [stdout]     |
[INFO] [stdout]  97 |               panic!(format!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout]  98 | |                 "range error: vector range:{} is mismatched to BIT_WIDTH:{}.",
[INFO] [stdout]  99 | |                 a.len(),
[INFO] [stdout] 100 | |                 BIT_WIDTH
[INFO] [stdout] 101 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout]  97 ~             panic!(
[INFO] [stdout]  98 |                 "range error: vector range:{} is mismatched to BIT_WIDTH:{}.",
[INFO] [stdout]  99 |                 a.len(),
[INFO] [stdout] 100 |                 BIT_WIDTH
[INFO] [stdout] 101 ~             )
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:124:20
[INFO] [stdout]     |
[INFO] [stdout] 124 |               panic!(format!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 125 | |                 "num_to_bit conversion failed: {} is out of range.",
[INFO] [stdout] 126 | |                 num
[INFO] [stdout] 127 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 124 ~             panic!(
[INFO] [stdout] 125 |                 "num_to_bit conversion failed: {} is out of range.",
[INFO] [stdout] 126 |                 num
[INFO] [stdout] 127 ~             )
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:259:20
[INFO] [stdout]     |
[INFO] [stdout] 259 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 259 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 259 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/word.rs:268:20
[INFO] [stdout]     |
[INFO] [stdout] 268 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 268 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 268 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/ram.rs:56:40
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let file = File::open(file_name.clone()).expect(&format!("Fail to open {}", file_name));
[INFO] [stdout]    |                                        ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` 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: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:64:34
[INFO] [stdout]    |
[INFO] [stdout] 64 |                   Err(v) => panic!(format!(
[INFO] [stdout]    |  __________________________________^
[INFO] [stdout] 65 | |                     "failed to load file: {}, due to : {}",
[INFO] [stdout] 66 | |                     file_name, v
[INFO] [stdout] 67 | |                 )),
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 64 ~                 Err(v) => panic!(
[INFO] [stdout] 65 |                     "failed to load file: {}, due to : {}",
[INFO] [stdout] 66 |                     file_name, v
[INFO] [stdout] 67 ~                 ),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]   --> src/ram.rs:84:20
[INFO] [stdout]    |
[INFO] [stdout] 84 |               panic!(format!(
[INFO] [stdout]    |  ____________________^
[INFO] [stdout] 85 | |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 86 | |                 a.len(),
[INFO] [stdout] 87 | |                 RAM_WORDS_NUM
[INFO] [stdout] 88 | |             ))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]    = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]    |
[INFO] [stdout] 84 ~             panic!(
[INFO] [stdout] 85 |                 "range error: vector range:{} is mismatched to RAM_WORDS_NUM:{}.",
[INFO] [stdout] 86 |                 a.len(),
[INFO] [stdout] 87 |                 RAM_WORDS_NUM
[INFO] [stdout] 88 ~             )
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/ram.rs:109:20
[INFO] [stdout]     |
[INFO] [stdout] 109 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 109 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 109 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/ram.rs:117:20
[INFO] [stdout]     |
[INFO] [stdout] 117 |             panic!(format!("index fail: {} is out of range.", index))
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stdout] help: remove the `format!(..)` macro call
[INFO] [stdout]     |
[INFO] [stdout] 117 -             panic!(format!("index fail: {} is out of range.", index))
[INFO] [stdout] 117 +             panic!("index fail: {} is out of range.", index)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.71s
[INFO] running `Command { std: "docker" "inspect" "6772f5674a96c2721d0470caa3732b58cf049977b699984229cad115461f3007", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6772f5674a96c2721d0470caa3732b58cf049977b699984229cad115461f3007", kill_on_drop: false }`
[INFO] [stdout] 6772f5674a96c2721d0470caa3732b58cf049977b699984229cad115461f3007
