[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] testing ralphrecto/cryptopals against try#028592fec99e54cc92def5a2a849c673b066dd93 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fralphrecto%2Fcryptopals" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ralphrecto/cryptopals on toolchain 028592fec99e54cc92def5a2a849c673b066dd93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ralphrecto/cryptopals 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" "+028592fec99e54cc92def5a2a849c673b066dd93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded byteorder v1.1.0 [INFO] [stderr] Downloaded base64 v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31a9a86e9109cb74c95d29dc604eff802f6cbaa18fe2181f82748378e105c2a5 [INFO] running `Command { std: "docker" "start" "-a" "31a9a86e9109cb74c95d29dc604eff802f6cbaa18fe2181f82748378e105c2a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31a9a86e9109cb74c95d29dc604eff802f6cbaa18fe2181f82748378e105c2a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31a9a86e9109cb74c95d29dc604eff802f6cbaa18fe2181f82748378e105c2a5", kill_on_drop: false }` [INFO] [stdout] 31a9a86e9109cb74c95d29dc604eff802f6cbaa18fe2181f82748378e105c2a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+028592fec99e54cc92def5a2a849c673b066dd93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71b2e0367121e5a464776746349a730913247a8a59a8f17a129dec9f37588b80 [INFO] running `Command { std: "docker" "start" "-a" "71b2e0367121e5a464776746349a730913247a8a59a8f17a129dec9f37588b80", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling byteorder v1.1.0 [INFO] [stderr] Compiling safemem v0.2.0 [INFO] [stderr] Compiling base64 v0.7.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher` and `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] = 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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [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)]` (part of `#[warn(unused)]`) 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: 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] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) 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] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 3 | for _i in 0..num_blocks { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `NUM_TOP_KEYSIZES` [INFO] [stdout] | [INFO] [stdout] 3 - for i in 0..num_blocks { [INFO] [stdout] 3 + for cryptopals::set1::challenge6::NUM_TOP_KEYSIZES in 0..num_blocks { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge1` is never used [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge2` is never used [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 `chi_square_printer` is never used [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 `challenge3` is never used [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 `challenge4` is never used [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 `challenge5` is never used [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 `challenge6` is never used [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 `hex_to_nibble` is never used [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 `nibble_to_hex` is never used [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 `str_to_bytevec` is never used [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 `hexstr_to_bytevec` is never used [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 `bytevec_to_hexstr` is never used [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 `count_set_bits` is never used [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 `letter_freq` is never used [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 `count_chars` is never used [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 `chi_square` is never used [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 `space_freq` is never used [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 `read_lines` is never used [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 `bytexor_keygen` is never used [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 `rolling_xor` is never used [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 `hamming_dist` is never used [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 `transpose_blocks` is never used [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: 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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = cryptopals::set1::challenge7(); [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: 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] = 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] 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.53s [INFO] running `Command { std: "docker" "inspect" "71b2e0367121e5a464776746349a730913247a8a59a8f17a129dec9f37588b80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71b2e0367121e5a464776746349a730913247a8a59a8f17a129dec9f37588b80", kill_on_drop: false }` [INFO] [stdout] 71b2e0367121e5a464776746349a730913247a8a59a8f17a129dec9f37588b80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c71152850655f9ed9c115003d52619f6ef88a14e2a681e4584101785d992ff16 [INFO] running `Command { std: "docker" "start" "-a" "c71152850655f9ed9c115003d52619f6ef88a14e2a681e4584101785d992ff16", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockCipher` and `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] = 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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [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)]` (part of `#[warn(unused)]`) 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: 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] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [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)]` (part of `#[warn(unused)]`) 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] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 3 | for _i in 0..num_blocks { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `NUM_TOP_KEYSIZES` [INFO] [stdout] | [INFO] [stdout] 3 - for i in 0..num_blocks { [INFO] [stdout] 3 + for cryptopals::set1::challenge6::NUM_TOP_KEYSIZES in 0..num_blocks { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge1` is never used [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `challenge2` is never used [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 `chi_square_printer` is never used [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 `challenge3` is never used [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 `challenge4` is never used [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 `challenge5` is never used [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 `challenge6` is never used [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 `nibble_to_hex` is never used [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 `str_to_bytevec` is never used [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 `bytevec_to_hexstr` is never used [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 `letter_freq` is never used [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 `count_chars` is never used [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 `chi_square` is never used [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 `space_freq` is never used [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 `read_lines` is never used [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: 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: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = cryptopals::set1::challenge7(); [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: 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] = 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] 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "c71152850655f9ed9c115003d52619f6ef88a14e2a681e4584101785d992ff16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c71152850655f9ed9c115003d52619f6ef88a14e2a681e4584101785d992ff16", kill_on_drop: false }` [INFO] [stdout] c71152850655f9ed9c115003d52619f6ef88a14e2a681e4584101785d992ff16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 89fce9c98c8fae03d5508f5b352e3ee97d18766751d727a897360f599b24fbed [INFO] running `Command { std: "docker" "start" "-a" "89fce9c98c8fae03d5508f5b352e3ee97d18766751d727a897360f599b24fbed", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unused import: `Block` [INFO] [stderr] --> src/cryptopals/set1.rs:1:19 [INFO] [stderr] | [INFO] [stderr] 1 | use aes::{Aes128, Block}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BlockCipher` and `BlockEncrypt` [INFO] [stderr] --> src/cryptopals/set1.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | BlockCipher, BlockEncrypt, BlockDecrypt, NewBlockCipher, [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/cryptopals/hexutils.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | 0...9 => (0x30 + b) as char, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` iterator expression [INFO] [stderr] --> src/cryptopals/hexutils.rs:65:14 [INFO] [stderr] | [INFO] [stderr] 65 | for i in (0..8) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 65 - for i in (0..8) { [INFO] [stderr] 65 + for i in 0..8 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ascii::AsciiExt` [INFO] [stderr] --> src/cryptopals/freq_analysis.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stderr] --> src/cryptopals/freq_analysis.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `ciphertext_block` is never read [INFO] [stderr] --> src/cryptopals/set1.rs:170:13 [INFO] [stderr] | [INFO] [stderr] 170 | let mut ciphertext_block: GenericArray = GenericArray::clone_from_slice(&[0u8; 16]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `plaintexts` [INFO] [stderr] --> src/cryptopals/xorutils.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | let plaintexts = bytexor_keygen(&vec![0, 0, 0]); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plaintexts` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/cryptopals/blockutils.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | for i in 0..num_blocks { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 3 | for _i in 0..num_blocks { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `NUM_TOP_KEYSIZES` [INFO] [stderr] | [INFO] [stderr] 3 - for i in 0..num_blocks { [INFO] [stderr] 3 + for cryptopals::set1::challenge6::NUM_TOP_KEYSIZES in 0..num_blocks { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: function `challenge1` is never used [INFO] [stderr] --> src/cryptopals/set1.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn challenge1() -> () { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `challenge2` is never used [INFO] [stderr] --> src/cryptopals/set1.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn challenge2() -> () { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `chi_square_printer` is never used [INFO] [stderr] --> src/cryptopals/set1.rs:37:4 [INFO] [stderr] | [INFO] [stderr] 37 | fn chi_square_printer(word: &str, keyword_and_keys: &Vec<(String, u8)>) -> () { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `challenge3` is never used [INFO] [stderr] --> src/cryptopals/set1.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn challenge3() -> () { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `challenge4` is never used [INFO] [stderr] --> src/cryptopals/set1.rs:55:8 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn challenge4() -> () { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `challenge5` is never used [INFO] [stderr] --> src/cryptopals/set1.rs:66:8 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn challenge5() -> () { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `challenge6` is never used [INFO] [stderr] --> src/cryptopals/set1.rs:75:8 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn challenge6() -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `nibble_to_hex` is never used [INFO] [stderr] --> src/cryptopals/hexutils.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn nibble_to_hex(b: u8) -> char { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `str_to_bytevec` is never used [INFO] [stderr] --> src/cryptopals/hexutils.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn str_to_bytevec(s: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `bytevec_to_hexstr` is never used [INFO] [stderr] --> src/cryptopals/hexutils.rs:52:8 [INFO] [stderr] | [INFO] [stderr] 52 | pub fn bytevec_to_hexstr(v: &Vec) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `letter_freq` is never used [INFO] [stderr] --> src/cryptopals/freq_analysis.rs:4:4 [INFO] [stderr] | [INFO] [stderr] 4 | fn letter_freq(c: char) -> Option { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `count_chars` is never used [INFO] [stderr] --> src/cryptopals/freq_analysis.rs:45:4 [INFO] [stderr] | [INFO] [stderr] 45 | fn count_chars(text: &str) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `chi_square` is never used [INFO] [stderr] --> src/cryptopals/freq_analysis.rs:57:8 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn chi_square(text: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `space_freq` is never used [INFO] [stderr] --> src/cryptopals/freq_analysis.rs:73:8 [INFO] [stderr] | [INFO] [stderr] 73 | pub fn space_freq(text: &str) -> f64 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_lines` is never used [INFO] [stderr] --> src/cryptopals/fileutils.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn read_lines(pathstr: &str) -> io::Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | cryptopals::set1::challenge7(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 21 | let _ = cryptopals::set1::challenge7(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/cryptopals/hexutils.rs:7:24 [INFO] [stderr] | [INFO] [stderr] 7 | None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 7 - None => panic!(format!("Given char {} was not a hex char.", s)), [INFO] [stderr] 7 + None => panic!("Given char {} was not a hex char.", s), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `cryptopals` (bin "cryptopals" test) generated 26 warnings (run `cargo fix --bin "cryptopals" --tests` to apply 7 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/cryptopals-19bbcb036dd5c3ef) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test cryptopals::blockutils::test_transpose_blocks ... ok [INFO] [stdout] test cryptopals::strutils::test_hamming_dist ... ok [INFO] [stdout] test cryptopals::xorutils::test_rolling_xor_ice ... ok [INFO] [stdout] test cryptopals::xorutils::test_bytexor_keygen_identity ... ok [INFO] [stdout] test cryptopals::xorutils::test_bytexor_keygen_length ... ok [INFO] [stdout] test cryptopals::xorutils::test_rolling_xor_ids ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "89fce9c98c8fae03d5508f5b352e3ee97d18766751d727a897360f599b24fbed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89fce9c98c8fae03d5508f5b352e3ee97d18766751d727a897360f599b24fbed", kill_on_drop: false }` [INFO] [stdout] 89fce9c98c8fae03d5508f5b352e3ee97d18766751d727a897360f599b24fbed