[INFO] cloning repository https://github.com/GiorgosMarga/cryptopals_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GiorgosMarga/cryptopals_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGiorgosMarga%2Fcryptopals_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGiorgosMarga%2Fcryptopals_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b23f98b370fae475456d922183821e0275c9f449 [INFO] building GiorgosMarga/cryptopals_rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGiorgosMarga%2Fcryptopals_rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GiorgosMarga/cryptopals_rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GiorgosMarga/cryptopals_rust [INFO] finished tweaking git repo https://github.com/GiorgosMarga/cryptopals_rust [INFO] tweaked toml for git repo https://github.com/GiorgosMarga/cryptopals_rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/GiorgosMarga/cryptopals_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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded block-modes v0.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd565f4b937724ac2cbdeaf246d17b858d55aff6a394fc83ab052a2398a5ce0e [INFO] running `Command { std: "docker" "start" "-a" "cd565f4b937724ac2cbdeaf246d17b858d55aff6a394fc83ab052a2398a5ce0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd565f4b937724ac2cbdeaf246d17b858d55aff6a394fc83ab052a2398a5ce0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd565f4b937724ac2cbdeaf246d17b858d55aff6a394fc83ab052a2398a5ce0e", kill_on_drop: false }` [INFO] [stdout] cd565f4b937724ac2cbdeaf246d17b858d55aff6a394fc83ab052a2398a5ce0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] acee110157130c57d281dbeb8b342f6cb94637c40879bcf3c0437e65d57faac2 [INFO] running `Command { std: "docker" "start" "-a" "acee110157130c57d281dbeb8b342f6cb94637c40879bcf3c0437e65d57faac2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling block-padding v0.3.3 [INFO] [stderr] Compiling block-modes v0.8.1 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cryptopals_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `repeating_xor_encryption` is never used [INFO] [stdout] --> src/set1.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn repeating_xor_encryption(msg: &Vec, key: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hamming_dist` is never used [INFO] [stdout] --> src/set1.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn hamming_dist(b1: &Vec, b2: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `into_blocks` is never used [INFO] [stdout] --> src/set1.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn into_blocks(encrypted: &Vec, key_size: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transpose` is never used [INFO] [stdout] --> src/set1.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn transpose(blocks: &Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_key_size` is never used [INFO] [stdout] --> src/set1.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn find_key_size(encrypted: &Vec, num_of_keys: usize) -> Vec<(f32, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `break_repeating_xor` is never used [INFO] [stdout] --> src/set1.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn break_repeating_xor(encrypted: &Vec) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CH12_PLAINTEXT` is never used [INFO] [stdout] --> src/set2.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const CH12_PLAINTEXT: &str = "Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd24gc28gbXkgaGFpciBjYW4gYmxvdwpUaGUgZ2lybGllcyBvbiBzdGFuZGJ... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CH12_KEY` is never used [INFO] [stdout] --> src/set2.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const CH12_KEY: &str = "YELLOW SUBMARINE"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IV` is never used [INFO] [stdout] --> src/set2.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const IV: &str = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aes_128_cbc_encryption` is never used [INFO] [stdout] --> src/set2.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn aes_128_cbc_encryption(data: Vec, key: &Vec, iv: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aes_128_cbc_decrypt` is never used [INFO] [stdout] --> src/set2.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn aes_128_cbc_decrypt(data: Vec, key: &Vec, iv: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_bytes` is never used [INFO] [stdout] --> src/set2.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn generate_random_bytes(count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encryption_oracle` is never used [INFO] [stdout] --> src/set2.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn encryption_oracle(msg: &Vec) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ch12_encryption_oracle` is never used [INFO] [stdout] --> src/set2.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn ch12_encryption_oracle(msg: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_block_size` is never used [INFO] [stdout] --> src/set2.rs:122:4 [INFO] [stdout] | [INFO] [stdout] 122 | fn find_block_size() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_ecb` is never used [INFO] [stdout] --> src/set2.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn is_ecb(block_size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ch12_decrypt_ecb` is never used [INFO] [stdout] --> src/set2.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn ch12_decrypt_ecb() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parser` is never used [INFO] [stdout] --> src/set2.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn parser(cookie: &str) -> HashMap<&str, &str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `object_encoder` is never used [INFO] [stdout] --> src/set2.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn object_encoder(email: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_fake_email` is never used [INFO] [stdout] --> src/set2.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn create_fake_email() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_pkcs7_padding` is never used [INFO] [stdout] --> src/set2.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 214 | fn validate_pkcs7_padding(block: &Vec) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `url_encode` is never used [INFO] [stdout] --> src/set2.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn url_encode(vec: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rjust` is never used [INFO] [stdout] --> src/set2.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn rjust(vec: Vec, width: usize, pad: u8) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ljust` is never used [INFO] [stdout] --> src/set2.rs:254:4 [INFO] [stdout] | [INFO] [stdout] 254 | fn ljust(vec: Vec, width: usize, pad: u8) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wrapper` is never used [INFO] [stdout] --> src/set2.rs:264:4 [INFO] [stdout] | [INFO] [stdout] 264 | fn wrapper(input: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_admin` is never used [INFO] [stdout] --> src/set2.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn check_admin(encrypted_msg: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitflip_attack` is never used [INFO] [stdout] --> src/set2.rs:279:4 [INFO] [stdout] | [INFO] [stdout] 279 | fn bitflip_attack() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.66s [INFO] running `Command { std: "docker" "inspect" "acee110157130c57d281dbeb8b342f6cb94637c40879bcf3c0437e65d57faac2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acee110157130c57d281dbeb8b342f6cb94637c40879bcf3c0437e65d57faac2", kill_on_drop: false }` [INFO] [stdout] acee110157130c57d281dbeb8b342f6cb94637c40879bcf3c0437e65d57faac2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88111c80d28f0aab125f4c1b8ff9fe3092e207d9fb41fd89252783a73c5bc42e [INFO] running `Command { std: "docker" "start" "-a" "88111c80d28f0aab125f4c1b8ff9fe3092e207d9fb41fd89252783a73c5bc42e", kill_on_drop: false }` [INFO] [stderr] Compiling cryptopals_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hex_encode` [INFO] [stdout] --> src/set2.rs:291:65 [INFO] [stdout] | [INFO] [stdout] 291 | use set1::{base64_decode, decrypt_aes_ecb, encrypt_aes_ecb, hex_encode, vec_to_str}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_bytes` is never used [INFO] [stdout] --> src/set2.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn generate_random_bytes(count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encryption_oracle` is never used [INFO] [stdout] --> src/set2.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn encryption_oracle(msg: &Vec) -> (Vec, bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_ecb` is never used [INFO] [stdout] --> src/set2.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn is_ecb(block_size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `Command { std: "docker" "inspect" "88111c80d28f0aab125f4c1b8ff9fe3092e207d9fb41fd89252783a73c5bc42e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88111c80d28f0aab125f4c1b8ff9fe3092e207d9fb41fd89252783a73c5bc42e", kill_on_drop: false }` [INFO] [stdout] 88111c80d28f0aab125f4c1b8ff9fe3092e207d9fb41fd89252783a73c5bc42e