[INFO] cloning repository https://github.com/EirikFA/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/EirikFA/cryptopals-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEirikFA%2Fcryptopals-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEirikFA%2Fcryptopals-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4458f46542257bfca0485ba554d66c81e6b053a2 [INFO] testing EirikFA/cryptopals-rust against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEirikFA%2Fcryptopals-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/EirikFA/cryptopals-rust [INFO] finished tweaking git repo https://github.com/EirikFA/cryptopals-rust [INFO] tweaked toml for git repo https://github.com/EirikFA/cryptopals-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/EirikFA/cryptopals-rust on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/EirikFA/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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81890bfb4fc3b0a82c6feba490b7f09d79a0666d7045a6031ba80810486c8203 [INFO] running `Command { std: "docker" "start" "-a" "81890bfb4fc3b0a82c6feba490b7f09d79a0666d7045a6031ba80810486c8203", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81890bfb4fc3b0a82c6feba490b7f09d79a0666d7045a6031ba80810486c8203", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81890bfb4fc3b0a82c6feba490b7f09d79a0666d7045a6031ba80810486c8203", kill_on_drop: false }` [INFO] [stdout] 81890bfb4fc3b0a82c6feba490b7f09d79a0666d7045a6031ba80810486c8203 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 63d5a9ad8971be22a478d241f522a9eb3b431c4a1fab4004d7d60bf50fd0c4a8 [INFO] running `Command { std: "docker" "start" "-a" "63d5a9ad8971be22a478d241f522a9eb3b431c4a1fab4004d7d60bf50fd0c4a8", kill_on_drop: false }` [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling cpufeatures v0.2.6 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `edit_distance` is never used [INFO] [stdout] --> src/basics.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn edit_distance(a: &[u8], b: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `average_edit_distance` is never used [INFO] [stdout] --> src/basics.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn average_edit_distance(chunks: Vec<&[u8]>) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transpose_chunks` is never used [INFO] [stdout] --> src/basics.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn transpose_chunks(chunks: Vec<&[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_rand_bytes` is never used [INFO] [stdout] --> src/basics.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn gen_rand_bytes(count: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relative_unique_chunks` is never used [INFO] [stdout] --> src/basics/cipher.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn relative_unique_chunks(bytes: &[u8]) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_aes_ecb` is never used [INFO] [stdout] --> src/basics/cipher.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn detect_aes_ecb(ciphertexts: Vec>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode` is never used [INFO] [stdout] --> src/basics/hex.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn decode(hex: &str) -> std::result::Result, ParseIntError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode` is never used [INFO] [stdout] --> src/basics/hex.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn encode(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_base64` is never used [INFO] [stdout] --> src/basics/hex.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn to_base64(hex: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LanguageAnalyzer` is never constructed [INFO] [stdout] --> src/basics/linguistics.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct LanguageAnalyzer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `into_character_map`, `from_text`, `from_file`, `from_sample_file`, and `eval_text` are never used [INFO] [stdout] --> src/basics/linguistics.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 9 | impl LanguageAnalyzer { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn into_character_map(text: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn from_text(text: &str) -> LanguageAnalyzer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn from_file(path: PathBuf) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn from_sample_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn eval_text(&self, text: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `XorGuess` is never constructed [INFO] [stdout] --> src/basics/xor.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct XorGuess(pub f32, pub u8, pub String); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `XorGuess` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor` is never used [INFO] [stdout] --> src/basics/xor.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn xor(a: &[u8], b: &[u8]) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_xor` is never used [INFO] [stdout] --> src/basics/xor.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn hex_xor(hex_a: &str, hex_b: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_xor` is never used [INFO] [stdout] --> src/basics/xor.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn guess_xor(bytes: &[u8], analyzer: &LanguageAnalyzer) -> XorGuess { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_xor_multiple` is never used [INFO] [stdout] --> src/basics/xor.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn guess_xor_multiple(strings: Vec) -> (String, XorGuess) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor_with_repeating_key` is never used [INFO] [stdout] --> src/basics/xor.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn xor_with_repeating_key(bytes: &[u8], key: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_repeating_key_size` is never used [INFO] [stdout] --> src/basics/xor.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn guess_repeating_key_size(bytes: &[u8], range: Range) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_repeating_key` is never used [INFO] [stdout] --> src/basics/xor.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn guess_repeating_key(bytes: &[u8], key_size_range: Range) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt_aes_128_ecb` is never used [INFO] [stdout] --> src/block_crypto.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn decrypt_aes_128_ecb(data: &[u8], key: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt_aes_128_ecb` is never used [INFO] [stdout] --> src/block_crypto.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn encrypt_aes_128_ecb(data: &[u8], key: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt_aes_128_cbc` is never used [INFO] [stdout] --> src/block_crypto.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn encrypt_aes_128_cbc(data: &[u8], key: &[u8], iv: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt_aes_128_cbc` is never used [INFO] [stdout] --> src/block_crypto.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn decrypt_aes_128_cbc(data: &[u8], key: &[u8], iv: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_mode` is never used [INFO] [stdout] --> src/block_crypto.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn detect_mode(data: &[u8]) -> EncryptionMode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNKNOWN_KEY` is never used [INFO] [stdout] --> src/block_crypto/ecb_bruteforce.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const UNKNOWN_KEY: &str = "YELLOW SUBMARINE"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `APPEND` is never used [INFO] [stdout] --> src/block_crypto/ecb_bruteforce.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const APPEND: &str = "Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd24gc28gbXkgaGFpciBjYW4gYmxvdwpUaGUgZ2lybGllcyBvbiBzdGFuZGJ5IHdhdml... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `oracle_encrypt` is never used [INFO] [stdout] --> src/block_crypto/ecb_bruteforce.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn oracle_encrypt(data: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_block_size` is never used [INFO] [stdout] --> src/block_crypto/ecb_bruteforce.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn find_block_size() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `EncryptionMode` is never used [INFO] [stdout] --> src/block_crypto/util.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum EncryptionMode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EncryptionMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pad_bytes` is never used [INFO] [stdout] --> src/block_crypto/util.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn pad_bytes(bytes: &[u8], target_size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unpad_bytes` is never used [INFO] [stdout] --> src/block_crypto/util.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn unpad_bytes(bytes: &[u8]) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_aes_128_inputs` is never used [INFO] [stdout] --> src/block_crypto/util.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn validate_aes_128_inputs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_to_generic_array_blocks` is never used [INFO] [stdout] --> src/block_crypto/util.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn bytes_to_generic_array_blocks>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt_random` is never used [INFO] [stdout] --> src/block_crypto/util.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn encrypt_random(data: &[u8]) -> Result<(Vec, EncryptionMode)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/block_crypto.rs:42:60 [INFO] [stdout] | [INFO] [stdout] 42 | let previous: &[u8] = encrypted_chunks.last().map_or(iv.clone(), |c| c.as_slice()); [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 3.18s [INFO] running `Command { std: "docker" "inspect" "63d5a9ad8971be22a478d241f522a9eb3b431c4a1fab4004d7d60bf50fd0c4a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63d5a9ad8971be22a478d241f522a9eb3b431c4a1fab4004d7d60bf50fd0c4a8", kill_on_drop: false }` [INFO] [stdout] 63d5a9ad8971be22a478d241f522a9eb3b431c4a1fab4004d7d60bf50fd0c4a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 90a2182dd1cf37c40e339d9431e71a85868e5d6b1d3ff63320836b350eee221c [INFO] running `Command { std: "docker" "start" "-a" "90a2182dd1cf37c40e339d9431e71a85868e5d6b1d3ff63320836b350eee221c", kill_on_drop: false }` [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/block_crypto.rs:42:60 [INFO] [stdout] | [INFO] [stdout] 42 | let previous: &[u8] = encrypted_chunks.last().map_or(iv.clone(), |c| c.as_slice()); [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] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustclkJCjP/symbols.o" "<10 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libtest-*,libgetopts-*,libunicode_width-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{librand-8aa8ecbd0c217629.rlib,librand_chacha-5e381d1c02127330.rlib,libppv_lite86-742ade976f63ace4.rlib,librand_core-d470b8f41d9b06fb.rlib,libgetrandom-bd8c12d1834a9b1f.rlib,liblibc-e1036eac0d1d076d.rlib,libaes-00bafa712c30ff5c.rlib,libcpufeatures-fa7fb2d47f153fa1.rlib,libcfg_if-66d55f6b302e88c8.rlib,libcipher-3bae4c47a7e1e4a3.rlib,libinout-7c5277b5e4f913cd.rlib,libcrypto_common-24b5e491b158f4c1.rlib,libgeneric_array-6ea743498e6beaab.rlib,libtypenum-98ca5036454512a2.rlib,libbase64-98e76763578d5910.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustclkJCjP/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cryptopals-393c3bcc5253bc9f" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-bd8c12d1834a9b1f.rlib(getrandom-bd8c12d1834a9b1f.getrandom.dde0ef0b121b6953-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.8/src/util_libc.rs:150:(.text._ZN9getrandom9util_libc13open_readonly17h73d21dbd16ba8366E+0xbc): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` (bin "cryptopals" test) due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "90a2182dd1cf37c40e339d9431e71a85868e5d6b1d3ff63320836b350eee221c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90a2182dd1cf37c40e339d9431e71a85868e5d6b1d3ff63320836b350eee221c", kill_on_drop: false }` [INFO] [stdout] 90a2182dd1cf37c40e339d9431e71a85868e5d6b1d3ff63320836b350eee221c