[INFO] cloning repository https://github.com/ralphrecto/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ralphrecto/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 734eccb7eb850acd5ce835cab6e7193fd12f49f2 [INFO] checking ralphrecto/cryptopals against master#936f2600b6c903b04387f74ed5cbce88bb06d243 for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals" "/workspace/builds/worker-83/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-83/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ralphrecto/cryptopals on toolchain 936f2600b6c903b04387f74ed5cbce88bb06d243 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ralphrecto/cryptopals [INFO] finished tweaking git repo https://github.com/ralphrecto/cryptopals [INFO] tweaked toml for git repo https://github.com/ralphrecto/cryptopals written to /workspace/builds/worker-83/source/Cargo.toml [INFO] crate git repo https://github.com/ralphrecto/cryptopals already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 210da63be400f573ef2b8c615390888cbdd440ab7fad2639663f3874ceb4997a [INFO] running `Command { std: "docker" "start" "-a" "210da63be400f573ef2b8c615390888cbdd440ab7fad2639663f3874ceb4997a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "210da63be400f573ef2b8c615390888cbdd440ab7fad2639663f3874ceb4997a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "210da63be400f573ef2b8c615390888cbdd440ab7fad2639663f3874ceb4997a", kill_on_drop: false }` [INFO] [stdout] 210da63be400f573ef2b8c615390888cbdd440ab7fad2639663f3874ceb4997a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-83/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+936f2600b6c903b04387f74ed5cbce88bb06d243" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9501aba5ce2a3ab327715529295f227b1b0e6d37c8e90cae96a955d7b77c2e00 [INFO] running `Command { std: "docker" "start" "-a" "9501aba5ce2a3ab327715529295f227b1b0e6d37c8e90cae96a955d7b77c2e00", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Checking base64 v0.7.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cryptopals/set1.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::{Aes128, Block}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher`, `BlockEncrypt` [INFO] [stdout] --> src/cryptopals/set1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | BlockCipher, BlockEncrypt, BlockDecrypt, NewBlockCipher, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cryptopals/hexutils.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | 0...9 => (0x30 + b) as char, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/cryptopals/hexutils.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for i in (0..8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - for i in (0..8) { [INFO] [stdout] 65 + for i in 0..8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cryptopals/set1.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use aes::{Aes128, Block}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher`, `BlockEncrypt` [INFO] [stdout] --> src/cryptopals/set1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | BlockCipher, BlockEncrypt, BlockDecrypt, NewBlockCipher, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/cryptopals/hexutils.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | 0...9 => (0x30 + b) as char, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/cryptopals/hexutils.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | for i in (0..8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - for i in (0..8) { [INFO] [stdout] 65 + for i in 0..8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cryptopals::hexutils` [INFO] [stdout] --> src/cryptopals/xorutils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cryptopals::hexutils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ciphertext_block` is never read [INFO] [stdout] --> src/cryptopals/set1.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut ciphertext_block: GenericArray = GenericArray::clone_from_slice(&[0u8; 16]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cryptopals/blockutils.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | for i in 0..num_blocks { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ciphertext_block` is never read [INFO] [stdout] --> src/cryptopals/set1.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let mut ciphertext_block: GenericArray = GenericArray::clone_from_slice(&[0u8; 16]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `plaintexts` [INFO] [stdout] --> src/cryptopals/xorutils.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let plaintexts = bytexor_keygen(&vec![0, 0, 0]); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plaintexts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cryptopals/blockutils.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | for i in 0..num_blocks { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge1` [INFO] [stdout] --> src/cryptopals/set1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn challenge1() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge2` [INFO] [stdout] --> src/cryptopals/set1.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn challenge2() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chi_square_printer` [INFO] [stdout] --> src/cryptopals/set1.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn chi_square_printer(word: &str, keyword_and_keys: &Vec<(String, u8)>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge3` [INFO] [stdout] --> src/cryptopals/set1.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn challenge3() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge4` [INFO] [stdout] --> src/cryptopals/set1.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn challenge4() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge5` [INFO] [stdout] --> src/cryptopals/set1.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn challenge5() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge6` [INFO] [stdout] --> src/cryptopals/set1.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn challenge6() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_nibble` [INFO] [stdout] --> src/cryptopals/hexutils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hex_to_nibble(s: char) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nibble_to_hex` [INFO] [stdout] --> src/cryptopals/hexutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn nibble_to_hex(b: u8) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_to_bytevec` [INFO] [stdout] --> src/cryptopals/hexutils.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn str_to_bytevec(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hexstr_to_bytevec` [INFO] [stdout] --> src/cryptopals/hexutils.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn hexstr_to_bytevec(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bytevec_to_hexstr` [INFO] [stdout] --> src/cryptopals/hexutils.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn bytevec_to_hexstr(v: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_set_bits` [INFO] [stdout] --> src/cryptopals/hexutils.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn count_set_bits(v: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `letter_freq` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn letter_freq(c: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_chars` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn count_chars(text: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chi_square` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn chi_square(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `space_freq` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn space_freq(text: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> src/cryptopals/fileutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn read_lines(pathstr: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bytexor_keygen` [INFO] [stdout] --> src/cryptopals/xorutils.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn bytexor_keygen(v: &Vec) -> Vec<(String, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rolling_xor` [INFO] [stdout] --> src/cryptopals/xorutils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn rolling_xor(v: &Vec, key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hamming_dist` [INFO] [stdout] --> src/cryptopals/strutils.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn hamming_dist(v1: &Vec, v2: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose_blocks` [INFO] [stdout] --> src/cryptopals/blockutils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn transpose_blocks(bytes: &Vec, num_blocks: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cryptopals/hexutils.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: 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] 7 - None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] 7 + None => panic!("Given char {} was not a hex char.", s), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | cryptopals::set1::challenge7(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge1` [INFO] [stdout] --> src/cryptopals/set1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn challenge1() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge2` [INFO] [stdout] --> src/cryptopals/set1.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn challenge2() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chi_square_printer` [INFO] [stdout] --> src/cryptopals/set1.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn chi_square_printer(word: &str, keyword_and_keys: &Vec<(String, u8)>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge3` [INFO] [stdout] --> src/cryptopals/set1.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn challenge3() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge4` [INFO] [stdout] --> src/cryptopals/set1.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn challenge4() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge5` [INFO] [stdout] --> src/cryptopals/set1.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn challenge5() -> () { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge6` [INFO] [stdout] --> src/cryptopals/set1.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn challenge6() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nibble_to_hex` [INFO] [stdout] --> src/cryptopals/hexutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn nibble_to_hex(b: u8) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `str_to_bytevec` [INFO] [stdout] --> src/cryptopals/hexutils.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn str_to_bytevec(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bytevec_to_hexstr` [INFO] [stdout] --> src/cryptopals/hexutils.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn bytevec_to_hexstr(v: &Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `letter_freq` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn letter_freq(c: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_chars` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn count_chars(text: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `chi_square` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn chi_square(text: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `space_freq` [INFO] [stdout] --> src/cryptopals/freq_analysis.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn space_freq(text: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_lines` [INFO] [stdout] --> src/cryptopals/fileutils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn read_lines(pathstr: &str) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/cryptopals/hexutils.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: 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] 7 - None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stdout] 7 + None => panic!("Given char {} was not a hex char.", s), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | cryptopals::set1::challenge7(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.43s [INFO] running `Command { std: "docker" "inspect" "9501aba5ce2a3ab327715529295f227b1b0e6d37c8e90cae96a955d7b77c2e00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9501aba5ce2a3ab327715529295f227b1b0e6d37c8e90cae96a955d7b77c2e00", kill_on_drop: false }` [INFO] [stdout] 9501aba5ce2a3ab327715529295f227b1b0e6d37c8e90cae96a955d7b77c2e00