[INFO] cloning repository https://github.com/nomaxg/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nomaxg/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnomaxg%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnomaxg%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ab784de0ee492af03eb57addabc04d14f6bc4985 [INFO] building nomaxg/cryptopals 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%2Fnomaxg%2Fcryptopals" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nomaxg/cryptopals 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/nomaxg/cryptopals [INFO] finished tweaking git repo https://github.com/nomaxg/cryptopals [INFO] tweaked toml for git repo https://github.com/nomaxg/cryptopals written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nomaxg/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 1c692ab667021829dd223ba700cfb38eb7fa6a7a94b74fb9511bd8036065c49a [INFO] running `Command { std: "docker" "start" "-a" "1c692ab667021829dd223ba700cfb38eb7fa6a7a94b74fb9511bd8036065c49a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c692ab667021829dd223ba700cfb38eb7fa6a7a94b74fb9511bd8036065c49a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c692ab667021829dd223ba700cfb38eb7fa6a7a94b74fb9511bd8036065c49a", kill_on_drop: false }` [INFO] [stdout] 1c692ab667021829dd223ba700cfb38eb7fa6a7a94b74fb9511bd8036065c49a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 48923fa72611ed2de7acedba36e71c47f4959d9907f80667096597d1f2015100 [INFO] running `Command { std: "docker" "start" "-a" "48923fa72611ed2de7acedba36e71c47f4959d9907f80667096597d1f2015100", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling getrandom v0.2.8 [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 inout v0.1.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling cipher v0.4.3 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/third_set.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes`, `MersenneTwister`, `break_single_char_xor`, `constants::PLAINTEXTS`, `ctr_decrypt`, `ctr_encrypt`, `display`, `read_lines`, `temper`, `transpose`, `untemper`, and `xor` [INFO] [stdout] --> src/third_set.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | aes::{aes_decrypt, aes_encrypt, ctr_decrypt, ctr_encrypt}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 7 | constants::PLAINTEXTS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | twister::{temper, untemper, MersenneTwister}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | utils::{ [INFO] [stdout] 10 | break_single_char_xor, display, from_base64, random_index, read_lines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stdout] | ^^^^^^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::temp_dir` [INFO] [stdout] --> src/twister.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::temp_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONSTANT_KEY` is never used [INFO] [stdout] --> src/third_set.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | const CONSTANT_KEY: [u8; 16] = [16; 16]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_random_cbc_encryption` is never used [INFO] [stdout] --> src/third_set.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn gen_random_cbc_encryption() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_padding` is never used [INFO] [stdout] --> src/third_set.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_padding(ct: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | for byte in bytes.clone().into_iter() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.64s [INFO] running `Command { std: "docker" "inspect" "48923fa72611ed2de7acedba36e71c47f4959d9907f80667096597d1f2015100", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48923fa72611ed2de7acedba36e71c47f4959d9907f80667096597d1f2015100", kill_on_drop: false }` [INFO] [stdout] 48923fa72611ed2de7acedba36e71c47f4959d9907f80667096597d1f2015100 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 6b2ba78bcf31c88e550bd56fe0e00a6d7532c0f7a193ee6a8e9d87be09c3cf85 [INFO] running `Command { std: "docker" "start" "-a" "6b2ba78bcf31c88e550bd56fe0e00a6d7532c0f7a193ee6a8e9d87be09c3cf85", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/third_set.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bytes`, `MersenneTwister`, `break_single_char_xor`, `constants::PLAINTEXTS`, `ctr_decrypt`, `ctr_encrypt`, `display`, `read_lines`, `temper`, `transpose`, `untemper`, and `xor` [INFO] [stdout] --> src/third_set.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | aes::{aes_decrypt, aes_encrypt, ctr_decrypt, ctr_encrypt}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 7 | constants::PLAINTEXTS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | twister::{temper, untemper, MersenneTwister}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | utils::{ [INFO] [stdout] 10 | break_single_char_xor, display, from_base64, random_index, read_lines, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stdout] | ^^^^^^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::temp_dir` [INFO] [stdout] --> src/twister.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::temp_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONSTANT_KEY` is never used [INFO] [stdout] --> src/third_set.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | const CONSTANT_KEY: [u8; 16] = [16; 16]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `gen_random_cbc_encryption` is never used [INFO] [stdout] --> src/third_set.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn gen_random_cbc_encryption() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_padding` is never used [INFO] [stdout] --> src/third_set.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 165 | fn verify_padding(ct: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | for byte in bytes.clone().into_iter() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/third_set.rs:11:50 [INFO] [stdout] | [INFO] [stdout] 11 | strip_padding_bytes, transpose, xor, Bytes, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::temp_dir` [INFO] [stdout] --> src/twister.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::temp_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | for byte in bytes.clone().into_iter() { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.18s [INFO] running `Command { std: "docker" "inspect" "6b2ba78bcf31c88e550bd56fe0e00a6d7532c0f7a193ee6a8e9d87be09c3cf85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b2ba78bcf31c88e550bd56fe0e00a6d7532c0f7a193ee6a8e9d87be09c3cf85", kill_on_drop: false }` [INFO] [stdout] 6b2ba78bcf31c88e550bd56fe0e00a6d7532c0f7a193ee6a8e9d87be09c3cf85