[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/66ca70b79fa7e33d83f82339416fdf0721978049 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [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 ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b17f43d3b97919e21b33c63eb3b34226d4c04c5fa4da27caa624ead9deab220e [INFO] running `Command { std: "docker" "start" "-a" "b17f43d3b97919e21b33c63eb3b34226d4c04c5fa4da27caa624ead9deab220e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b17f43d3b97919e21b33c63eb3b34226d4c04c5fa4da27caa624ead9deab220e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b17f43d3b97919e21b33c63eb3b34226d4c04c5fa4da27caa624ead9deab220e", kill_on_drop: false }` [INFO] [stdout] b17f43d3b97919e21b33c63eb3b34226d4c04c5fa4da27caa624ead9deab220e [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08d592a90ad731199d089003d4a6d27761f903f47f800141c53305d14f06bf5a [INFO] running `Command { std: "docker" "start" "-a" "08d592a90ad731199d089003d4a6d27761f903f47f800141c53305d14f06bf5a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking cpufeatures v0.2.11 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking base64 v0.21.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking getrandom v0.2.11 [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 is-terminal v0.4.9 [INFO] [stderr] Checking regex-automata v0.4.3 [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 aes v0.8.3 [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/oracle.rs (3 fixes) [INFO] [stderr] Fixed src/challenge_17.rs (1 fix) [INFO] [stderr] Fixed src/attacks.rs (3 fixes) [INFO] [stderr] Fixed src/ctr.rs (1 fix) [INFO] [stderr] Fixed src/utils.rs (2 fixes) [INFO] [stderr] Fixed src/cbc.rs (1 fix) [INFO] [stderr] Fixed src/cookie.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/attacks.rs (1 fix) [INFO] [stderr] Fixed src/pkcs7.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 4.18s [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 6 others [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:421: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 6 others [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:421: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] 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 6 others [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:421: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] 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: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 6 others [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:421: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 6 others [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:421: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 6 others [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:421: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 6 others [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:421: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] 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] [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] [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" "08d592a90ad731199d089003d4a6d27761f903f47f800141c53305d14f06bf5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08d592a90ad731199d089003d4a6d27761f903f47f800141c53305d14f06bf5a", kill_on_drop: false }` [INFO] [stdout] 08d592a90ad731199d089003d4a6d27761f903f47f800141c53305d14f06bf5a