[INFO] cloning repository https://github.com/jcmorrow/cryptopals_set_1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jcmorrow/cryptopals_set_1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjcmorrow%2Fcryptopals_set_1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjcmorrow%2Fcryptopals_set_1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 227acf3248ee7e0fc13c6dec119d8d6592570878 [INFO] checking jcmorrow/cryptopals_set_1 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjcmorrow%2Fcryptopals_set_1" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jcmorrow/cryptopals_set_1 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jcmorrow/cryptopals_set_1 [INFO] finished tweaking git repo https://github.com/jcmorrow/cryptopals_set_1 [INFO] tweaked toml for git repo https://github.com/jcmorrow/cryptopals_set_1 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/jcmorrow/cryptopals_set_1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b80f65d4db087fb08eab06a4186ba57fb07fce73d3cc9ad5e2e41ab5c2b78c63 [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" "b80f65d4db087fb08eab06a4186ba57fb07fce73d3cc9ad5e2e41ab5c2b78c63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b80f65d4db087fb08eab06a4186ba57fb07fce73d3cc9ad5e2e41ab5c2b78c63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b80f65d4db087fb08eab06a4186ba57fb07fce73d3cc9ad5e2e41ab5c2b78c63", kill_on_drop: false }` [INFO] [stdout] b80f65d4db087fb08eab06a4186ba57fb07fce73d3cc9ad5e2e41ab5c2b78c63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52488182c649c47153c08cd82cf47a70433e7cfde5b1c73e07d41d625f1b8e01 [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" "52488182c649c47153c08cd82cf47a70433e7cfde5b1c73e07d41d625f1b8e01", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.47 [INFO] [stderr] Compiling openssl v0.10.23 [INFO] [stderr] Checking cryptopals_set_1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Read`, `self` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, BufReader, Read}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read`, `self` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, BufReader, Read}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `decrypt_aes_128_ecb` [INFO] [stdout] --> src/necromancer/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn decrypt_aes_128_ecb(encrypted: &str, key: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hamming_distance` [INFO] [stdout] --> src/necromancer/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hamming_distance(a: &[u8], b: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hamming_distance_byte` [INFO] [stdout] --> src/necromancer/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn hamming_distance_byte(a: u8, b: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bytes_to_string` [INFO] [stdout] --> src/necromancer/mod.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn bytes_to_string(s: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `repeating_key_xor` [INFO] [stdout] --> src/necromancer/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn repeating_key_xor(s: &str, k: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deencrypt_single_byte_xor` [INFO] [stdout] --> src/necromancer/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn deencrypt_single_byte_xor(s: &str) -> (String, f32, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_string_to_bytes` [INFO] [stdout] --> src/necromancer/mod.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn hex_string_to_bytes(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_to_base_64` [INFO] [stdout] --> src/necromancer/mod.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn hex_to_base_64(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `base_64_to_hex` [INFO] [stdout] --> src/necromancer/mod.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn base_64_to_hex(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `base_64_index` [INFO] [stdout] --> src/necromancer/mod.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn base_64_index(c: char) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hex_xor` [INFO] [stdout] --> src/necromancer/mod.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn hex_xor(s1: &str, s2: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `xor` [INFO] [stdout] --> src/necromancer/mod.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn xor(a: &[u8], b: &[u8]) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bytes_to_hex_string` [INFO] [stdout] --> src/necromancer/mod.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn bytes_to_hex_string(xs: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `character_frequencies` [INFO] [stdout] --> src/necromancer/mod.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn character_frequencies(chars: &[u8]) -> [u32; 255] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mse` [INFO] [stdout] --> src/necromancer/mod.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn mse(a: u32, b: u32) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `english_score` [INFO] [stdout] --> src/necromancer/mod.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn english_score(string: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `WIKIPEDIA` [INFO] [stdout] --> src/necromancer/mod.rs:241:1 [INFO] [stdout] | [INFO] [stdout] 241 | / const WIKIPEDIA: &str = "In computing, plain text is a loose term for data (e.g. file contents) that represent only characters of readabl... [INFO] [stdout] 242 | | [INFO] [stdout] 243 | | The term is sometimes used quite loosely, to mean files that contain only \"readable\" content (or just files with nothing that the speak... [INFO] [stdout] 244 | | [INFO] [stdout] ... | [INFO] [stdout] 251 | | The use of plain text rather than binary files, enables files to survive much better \"in the wild\", in part by making them largely immu... [INFO] [stdout] 252 | | "; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/necromancer/mod.rs:163:45 [INFO] [stdout] | [INFO] [stdout] 163 | Err(_x) => panic!("Tried to convert {:?} in base-16 to base-10"), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(panic_fmt)]` on by default [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 163 | Err(_x) => panic!("Tried to convert {:?} in base-16 to base-10", ...), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 163 | Err(_x) => panic!("{}", "Tried to convert {:?} in base-16 to base-10"), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/necromancer/mod.rs:367:13 [INFO] [stdout] | [INFO] [stdout] 367 | let bytes = hex_string_to_bytes(&encrypted); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message contains an unused formatting placeholder [INFO] [stdout] --> src/necromancer/mod.rs:163:45 [INFO] [stdout] | [INFO] [stdout] 163 | Err(_x) => panic!("Tried to convert {:?} in base-16 to base-10"), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(panic_fmt)]` on by default [INFO] [stdout] = note: this message is not used as a format string when given without arguments, but will be in a future Rust edition [INFO] [stdout] help: add the missing argument [INFO] [stdout] | [INFO] [stdout] 163 | Err(_x) => panic!("Tried to convert {:?} in base-16 to base-10", ...), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or add a "{}" format string to use the message literally [INFO] [stdout] | [INFO] [stdout] 163 | Err(_x) => panic!("{}", "Tried to convert {:?} in base-16 to base-10"), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 10.31s [INFO] running `Command { std: "docker" "inspect" "52488182c649c47153c08cd82cf47a70433e7cfde5b1c73e07d41d625f1b8e01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52488182c649c47153c08cd82cf47a70433e7cfde5b1c73e07d41d625f1b8e01", kill_on_drop: false }` [INFO] [stdout] 52488182c649c47153c08cd82cf47a70433e7cfde5b1c73e07d41d625f1b8e01