[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] checking lazmond3/rust-nand2tetris against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flazmond3%2Frust-nand2tetris" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lazmond3/rust-nand2tetris on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-12/source/Cargo.toml [INFO] crate git repo https://github.com/lazmond3/rust-nand2tetris already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f75ed933bd794ba07521609cefdfd947cdda91a1bb67809e9db34bfbf465befa [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f75ed933bd794ba07521609cefdfd947cdda91a1bb67809e9db34bfbf465befa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f75ed933bd794ba07521609cefdfd947cdda91a1bb67809e9db34bfbf465befa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f75ed933bd794ba07521609cefdfd947cdda91a1bb67809e9db34bfbf465befa", kill_on_drop: false }` [INFO] [stdout] f75ed933bd794ba07521609cefdfd947cdda91a1bb67809e9db34bfbf465befa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52718757fdfd009cb62d51bf470669fb13e0430f8ecf17fe67f0e706c803044e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "52718757fdfd009cb62d51bf470669fb13e0430f8ecf17fe67f0e706c803044e", kill_on_drop: false }` [INFO] [stderr] Checking 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)]` 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`, `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: 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)]` 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`, `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: function is never used: `and` [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `and_word` [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: field is never read: `state_past` [INFO] [stdout] --> src/dff.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | state_past: Bit, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state_next` [INFO] [stdout] --> src/dff.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | state_next: Bit, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/dff.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `input` [INFO] [stdout] --> src/dff.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn input(&mut self, a: Bit, clock: &Clock) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `say` [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 is never used: `say_fancy` [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: function is never used: `say_mut_fancy` [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: struct is never constructed: `Rom` [INFO] [stdout] --> src/rom.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Rom { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rom.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `easy_add` [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 is never read: `word` [INFO] [stdout] --> src/keyboard.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | word: Word, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `matching` [INFO] [stdout] --> src/keyboard.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn matching(line: String) -> Option { [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: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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/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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("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:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | _ => panic!(format!("cannot convert to Bit from : {}", c)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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] 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/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 is no longer accepted in Rust 2021 [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!("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:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | panic!(format!("index fail: {} is out of range.", index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("index fail: {} is out of range.", index) [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rom` [INFO] [stdout] --> src/rom.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Rom { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rom.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `easy_add` [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 is never read: `word` [INFO] [stdout] --> src/keyboard.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | word: Word, [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: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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/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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("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:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | _ => panic!(format!("cannot convert to Bit from : {}", c)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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] 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/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 is no longer accepted in Rust 2021 [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!("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:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | panic!(format!("index fail: {} is out of range.", index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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!("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 is no longer accepted in Rust 2021 [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!("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: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 is no longer accepted in Rust 2021 [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 is no longer accepted in Rust 2021 [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: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "52718757fdfd009cb62d51bf470669fb13e0430f8ecf17fe67f0e706c803044e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52718757fdfd009cb62d51bf470669fb13e0430f8ecf17fe67f0e706c803044e", kill_on_drop: false }` [INFO] [stdout] 52718757fdfd009cb62d51bf470669fb13e0430f8ecf17fe67f0e706c803044e