[INFO] cloning repository https://github.com/damiansarnecki/cryptopals-solutions-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/damiansarnecki/cryptopals-solutions-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdamiansarnecki%2Fcryptopals-solutions-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdamiansarnecki%2Fcryptopals-solutions-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4dd745a343422f81e52c75cc42333840085bab61 [INFO] checking damiansarnecki/cryptopals-solutions-rust against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdamiansarnecki%2Fcryptopals-solutions-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/damiansarnecki/cryptopals-solutions-rust [INFO] finished tweaking git repo https://github.com/damiansarnecki/cryptopals-solutions-rust [INFO] tweaked toml for git repo https://github.com/damiansarnecki/cryptopals-solutions-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/damiansarnecki/cryptopals-solutions-rust on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/damiansarnecki/cryptopals-solutions-rust 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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7614c466a2ff6d4c83e1ab21f40c2913ddd3b49381777ac73936c0cfaff8868c [INFO] running `Command { std: "docker" "start" "-a" "7614c466a2ff6d4c83e1ab21f40c2913ddd3b49381777ac73936c0cfaff8868c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7614c466a2ff6d4c83e1ab21f40c2913ddd3b49381777ac73936c0cfaff8868c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7614c466a2ff6d4c83e1ab21f40c2913ddd3b49381777ac73936c0cfaff8868c", kill_on_drop: false }` [INFO] [stdout] 7614c466a2ff6d4c83e1ab21f40c2913ddd3b49381777ac73936c0cfaff8868c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85f9607731b6e4292561ce58919cc7404972c981a35a856eac5c1c1bfa4daef3 [INFO] running `Command { std: "docker" "start" "-a" "85f9607731b6e4292561ce58919cc7404972c981a35a856eac5c1c1bfa4daef3", kill_on_drop: false }` [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking cryptopals-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ErrorKind`, `Error`, and `Result` [INFO] [stdout] --> src/challenges/set1/ch3.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Error, ErrorKind, Result}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind`, `Error`, `Result`, and `self` [INFO] [stdout] --> src/challenges/set1/ch4.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::{self, File}, io::{self, BufRead, Error, ErrorKind, Result}}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch2::xor_buffers` [INFO] [stdout] --> src/challenges/set1/ch4.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{ch2::xor_buffers, ch3::{estimate_english_text_score, find_best_decrypt_result}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `ErrorKind`, `Error`, `File`, `Result`, `self`, and `self` [INFO] [stdout] --> src/challenges/set1/ch5.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 3 | io::{self, BufRead, Error, ErrorKind, Result}, [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ch2::xor_buffers`, `estimate_english_text_score`, and `find_best_decrypt_result` [INFO] [stdout] --> src/challenges/set1/ch5.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ch2::xor_buffers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | ch3::{estimate_english_text_score, find_best_decrypt_result}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind`, `Error`, and `Result` [INFO] [stdout] --> src/challenges/set1/ch3.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Error, ErrorKind, Result}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind`, `Error`, `Result`, and `self` [INFO] [stdout] --> src/challenges/set1/ch4.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::{self, File}, io::{self, BufRead, Error, ErrorKind, Result}}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch2::xor_buffers` [INFO] [stdout] --> src/challenges/set1/ch4.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{ch2::xor_buffers, ch3::{estimate_english_text_score, find_best_decrypt_result}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `ErrorKind`, `Error`, `File`, `Result`, `self`, and `self` [INFO] [stdout] --> src/challenges/set1/ch5.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 3 | io::{self, BufRead, Error, ErrorKind, Result}, [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ch2::xor_buffers`, `estimate_english_text_score`, and `find_best_decrypt_result` [INFO] [stdout] --> src/challenges/set1/ch5.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ch2::xor_buffers, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | ch3::{estimate_english_text_score, find_best_decrypt_result}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/challenges/set1/ch4.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn find_single_xor_encrypted_string_from_file(file: &str) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/challenges/set1/ch4.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn find_single_xor_encrypted_string_from_file(file: &str) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_to_base64` is never used [INFO] [stdout] --> src/challenges/set1/ch1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hex_to_base64(hex_str: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor_buffers` is never used [INFO] [stdout] --> src/challenges/set1/ch2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn xor_buffers(b1: &Vec, b2: &Vec) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/challenges/set1/ch3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn decrypt(input: &Vec, key: u8) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_best_decrypt_result` is never used [INFO] [stdout] --> src/challenges/set1/ch3.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn find_best_decrypt_result(input : Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `estimate_english_text_score` is never used [INFO] [stdout] --> src/challenges/set1/ch3.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn estimate_english_text_score(input : &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_single_xor_encrypted_string_from_file` is never used [INFO] [stdout] --> src/challenges/set1/ch4.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn find_single_xor_encrypted_string_from_file(file: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt_with_repeated_key_xor` is never used [INFO] [stdout] --> src/challenges/set1/ch5.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn encrypt_with_repeated_key_xor(input: &Vec, key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "85f9607731b6e4292561ce58919cc7404972c981a35a856eac5c1c1bfa4daef3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85f9607731b6e4292561ce58919cc7404972c981a35a856eac5c1c1bfa4daef3", kill_on_drop: false }` [INFO] [stdout] 85f9607731b6e4292561ce58919cc7404972c981a35a856eac5c1c1bfa4daef3