[INFO] cloning repository https://github.com/Jakedavies/cryptopals-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jakedavies/cryptopals-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJakedavies%2Fcryptopals-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJakedavies%2Fcryptopals-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66ca70b79fa7e33d83f82339416fdf0721978049 [INFO] checking Jakedavies/cryptopals-rs against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJakedavies%2Fcryptopals-rs" "/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/Jakedavies/cryptopals-rs on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Jakedavies/cryptopals-rs [INFO] finished tweaking git repo https://github.com/Jakedavies/cryptopals-rs [INFO] tweaked toml for git repo https://github.com/Jakedavies/cryptopals-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Jakedavies/cryptopals-rs 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0c5e9e0d608952ae51ac68181beb197d94fbcba8309ef7b56a245f7ea475a4ce [INFO] running `Command { std: "docker" "start" "-a" "0c5e9e0d608952ae51ac68181beb197d94fbcba8309ef7b56a245f7ea475a4ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c5e9e0d608952ae51ac68181beb197d94fbcba8309ef7b56a245f7ea475a4ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c5e9e0d608952ae51ac68181beb197d94fbcba8309ef7b56a245f7ea475a4ce", kill_on_drop: false }` [INFO] [stdout] 0c5e9e0d608952ae51ac68181beb197d94fbcba8309ef7b56a245f7ea475a4ce [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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47a82cfa9e1cc11249d953cb41b2e2182de71634559e3342bfff83a871c87bb9 [INFO] running `Command { std: "docker" "start" "-a" "47a82cfa9e1cc11249d953cb41b2e2182de71634559e3342bfff83a871c87bb9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking cpufeatures v0.2.11 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking aes v0.8.3 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::HashMap`, `error::Error`, `str::from_utf8` [INFO] [stdout] --> src/attacks.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, error::Error, str::from_utf8}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hex`, `StaticOracle` [INFO] [stdout] --> src/attacks.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | oracle::{Oracle, StaticOracle}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | utils::Xor, [INFO] [stdout] 7 | utils::{DetectDuplicate, Hex}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/attacks.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/utils.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::Hex` [INFO] [stdout] --> src/pkcs7.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::Hex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hex` [INFO] [stdout] --> src/cbc.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{pkcs7, utils::{Xor, decrypt_aes_128, encrypt_aes_128, Hex}}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/oracle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/oracle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Base64`, `Hex`, `decrypt_aes_128`, `encrypt_aes_128` [INFO] [stdout] --> src/oracle.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::utils::{random_key, encrypt_aes_128, padded_encrypt_aes_128, Base64, Hex, decrypt_aes_128, decrypt_aes_128_padded}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ ^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::Hash` [INFO] [stdout] --> src/cookie.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, hash::Hash, str::from_utf8}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/cookie.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/cookie.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hex`, `oracle::Oracle`, `padded_encrypt_aes_128`, `self` [INFO] [stdout] --> src/challenge_17.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | oracle::Oracle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | pkcs7::{self, strip_padding}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | utils::{padded_encrypt_aes_128, random_key, Hex, Base64}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `error::Error`, `str::from_utf8` [INFO] [stdout] --> src/attacks.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, error::Error, str::from_utf8}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/ctr.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{BigEndian, ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hex` [INFO] [stdout] --> src/attacks.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | utils::{DetectDuplicate, Hex}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/attacks.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/utils.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/cbc.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::from_utf8` [INFO] [stdout] --> src/oracle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::from_utf8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/oracle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Base64`, `Hex`, `decrypt_aes_128`, `encrypt_aes_128` [INFO] [stdout] --> src/oracle.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::utils::{random_key, encrypt_aes_128, padded_encrypt_aes_128, Base64, Hex, decrypt_aes_128, decrypt_aes_128_padded}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ ^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::Hash` [INFO] [stdout] --> src/cookie.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, hash::Hash, str::from_utf8}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/cookie.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/cookie.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hex`, `oracle::Oracle`, `padded_encrypt_aes_128`, `self` [INFO] [stdout] --> src/challenge_17.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | oracle::Oracle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | pkcs7::{self, strip_padding}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | utils::{padded_encrypt_aes_128, random_key, Hex, Base64}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/ctr.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{BigEndian, ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ByteOrder` [INFO] [stdout] --> src/ctr.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{BigEndian, ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ByteOrder` [INFO] [stdout] --> src/ctr.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{BigEndian, ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `iv` are never read [INFO] [stdout] --> src/challenge_16.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Challenge16 { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | iv: Vec, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/utils.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let input = "Burning 'em, if you ain't quick and nimble [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/utils.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let key = "YELLOW SUBMARINE".as_bytes(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `iv` are never read [INFO] [stdout] --> src/challenge_16.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Challenge16 { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | iv: Vec, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cryptopals::challenge_17` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use cryptopals::challenge_17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cryptopals::challenge_17` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use cryptopals::challenge_17; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let answer = duplicates.first().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let answer = duplicates.first().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:117:30 [INFO] [stdout] | [INFO] [stdout] 117 | let mut input = input.clone().as_bytes().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:117:30 [INFO] [stdout] | [INFO] [stdout] 117 | let mut input = input.clone().as_bytes().to_vec(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.77s [INFO] running `Command { std: "docker" "inspect" "47a82cfa9e1cc11249d953cb41b2e2182de71634559e3342bfff83a871c87bb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47a82cfa9e1cc11249d953cb41b2e2182de71634559e3342bfff83a871c87bb9", kill_on_drop: false }` [INFO] [stdout] 47a82cfa9e1cc11249d953cb41b2e2182de71634559e3342bfff83a871c87bb9 [INFO] checking Jakedavies/cryptopals-rs against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJakedavies%2Fcryptopals-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jakedavies/cryptopals-rs on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Jakedavies/cryptopals-rs [INFO] finished tweaking git repo https://github.com/Jakedavies/cryptopals-rs [INFO] tweaked toml for git repo https://github.com/Jakedavies/cryptopals-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Jakedavies/cryptopals-rs 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd4680372c6d4731054a9023ab01d58a69e0b56090475f9380fc42c08b884822 [INFO] running `Command { std: "docker" "start" "-a" "dd4680372c6d4731054a9023ab01d58a69e0b56090475f9380fc42c08b884822", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd4680372c6d4731054a9023ab01d58a69e0b56090475f9380fc42c08b884822", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd4680372c6d4731054a9023ab01d58a69e0b56090475f9380fc42c08b884822", kill_on_drop: false }` [INFO] [stdout] dd4680372c6d4731054a9023ab01d58a69e0b56090475f9380fc42c08b884822 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6dca609fa6417ba36a62c14e9cd6cf291d79e9c17997244e6ca74158f25de14c [INFO] running `Command { std: "docker" "start" "-a" "6dca609fa6417ba36a62c14e9cd6cf291d79e9c17997244e6ca74158f25de14c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking cpufeatures v0.2.11 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking aes v0.8.3 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking cryptopals v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/utils.rs (2 fixes) [INFO] [stderr] Fixed src/challenge_17.rs (1 fix) [INFO] [stderr] Fixed src/cookie.rs (3 fixes) [INFO] [stderr] Fixed src/attacks.rs (3 fixes) [INFO] [stderr] Fixed src/ctr.rs (1 fix) [INFO] [stderr] Fixed src/cbc.rs (1 fix) [INFO] [stderr] Fixed src/oracle.rs (3 fixes) [INFO] [stdout] warning: unused import: `ByteOrder` [INFO] [stdout] --> src/ctr.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/utils.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | let input = "Burning 'em, if you ain't quick and nimble [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/utils.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let key = "YELLOW SUBMARINE".as_bytes(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `iv` are never read [INFO] [stdout] --> src/challenge_16.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Challenge16 { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | iv: Vec, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/cbc.rs (1 fix) [INFO] [stderr] Fixed src/pkcs7.rs (1 fix) [INFO] [stderr] Fixed src/attacks.rs (1 fix) [INFO] [stdout] warning: unused import: `ByteOrder` [INFO] [stdout] --> src/ctr.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `iv` are never read [INFO] [stdout] --> src/challenge_16.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Challenge16 { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | iv: Vec, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let answer = duplicates.first().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let answer = duplicates.first().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.58s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking cryptopals v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StaticOracle` [INFO] [stdout] --> src/attacks.rs:304:22 [INFO] [stdout] | [INFO] [stdout] 304 | let oracle = StaticOracle::new().with_prefix("SUBMARINE SUBMARINE".as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `StaticOracle` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 293 + use crate::oracle::StaticOracle; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ByteOrder` [INFO] [stdout] --> src/ctr.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `iv` are never read [INFO] [stdout] --> src/challenge_16.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Challenge16 { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | key: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | iv: Vec, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/pkcs7.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 39 | let input = Vec::::from_hex("F14ADBDA019D6DB7EFD91546E3FF84449BCB"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 4 others [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `from_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 35 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 39 | let input = Vec::::from("F14ADBDA019D6DB7EFD91546E3FF84449BCB"); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/pkcs7.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | let expected = Vec::::from_hex("F14ADBDA019D6DB7EFD91546E3FF84449BCB0E0E0E0E0E0E0E0E0E0E0E0E0E0E"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 4 others [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `from_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 35 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 40 | let expected = Vec::::from("F14ADBDA019D6DB7EFD91546E3FF84449BCB0E0E0E0E0E0E0E0E0E0E0E0E0E0E"); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/pkcs7.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | let input = Vec::::from_hex("971ACD01C9C7ADEACC83257926F490FF"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 4 others [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `from_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 35 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 47 | let input = Vec::::from("971ACD01C9C7ADEACC83257926F490FF"); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/pkcs7.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | let expected = Vec::::from_hex("971ACD01C9C7ADEACC83257926F490FF10101010101010101010101010101010"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 4 others [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `from_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 35 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 48 | let expected = Vec::::from("971ACD01C9C7ADEACC83257926F490FF10101010101010101010101010101010"); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/pkcs7.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | let input = Vec::::from_hex("F14ADBDA019D6DB7EFD91546E3FF84449BCB0E0E0E0E0E0E0E0E0E0E0E0E0E0E"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 4 others [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `from_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 35 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 55 | let input = Vec::::from("F14ADBDA019D6DB7EFD91546E3FF84449BCB0E0E0E0E0E0E0E0E0E0E0E0E0E0E"); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/pkcs7.rs:56:35 [INFO] [stdout] | [INFO] [stdout] 56 | let expected = Vec::::from_hex("F14ADBDA019D6DB7EFD91546E3FF84449BCB"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 4 others [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `from_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 35 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 56 | let expected = Vec::::from("F14ADBDA019D6DB7EFD91546E3FF84449BCB"); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/pkcs7.rs:63:32 [INFO] [stdout] | [INFO] [stdout] 63 | let input = Vec::::from_hex("F14ADBDA019D6DB7EFD91546E3FF84449BCB0E0E0E0E0E0E0E0E0E0E0E0E0E0F"); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `Vec` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 4 others [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `from_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 35 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 63 | let input = Vec::::from("F14ADBDA019D6DB7EFD91546E3FF84449BCB0E0E0E0E0E0E0E0E0E0E0E0E0E0F"); [INFO] [stdout] | ~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_hex` found for struct `Vec` in the current scope [INFO] [stdout] --> src/cbc.rs:48:41 [INFO] [stdout] | [INFO] [stdout] 48 | println!("encrypt: {}", encrypt.to_hex()); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/utils.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn to_hex(&self) -> String; [INFO] [stdout] | ------ the method is available for `Vec` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Hex` which provides `to_hex` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 39 + use crate::utils::Hex; [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_vec` with a similar name [INFO] [stdout] | [INFO] [stdout] 48 | println!("encrypt: {}", encrypt.to_vec()); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ByteOrder` [INFO] [stdout] --> src/ctr.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use byteorder::{ByteOrder, LittleEndian, WriteBytesExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/utils.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | let input = "Burning 'em, if you ain't quick and nimble [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/utils.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | let key = "YELLOW SUBMARINE".as_bytes(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let answer = duplicates.first().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let answer = duplicates.first().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` (lib test) due to 10 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6dca609fa6417ba36a62c14e9cd6cf291d79e9c17997244e6ca74158f25de14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6dca609fa6417ba36a62c14e9cd6cf291d79e9c17997244e6ca74158f25de14c", kill_on_drop: false }` [INFO] [stdout] 6dca609fa6417ba36a62c14e9cd6cf291d79e9c17997244e6ca74158f25de14c