[INFO] cloning repository https://github.com/ThomasZumsteg/cryptopals [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ThomasZumsteg/cryptopals" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomasZumsteg%2Fcryptopals", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomasZumsteg%2Fcryptopals'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fa4c43506b1630c83efe48a99950e9339274644c [INFO] testing ThomasZumsteg/cryptopals against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThomasZumsteg%2Fcryptopals" "/workspace/builds/worker-25/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-25/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ThomasZumsteg/cryptopals on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ThomasZumsteg/cryptopals [INFO] finished tweaking git repo https://github.com/ThomasZumsteg/cryptopals [INFO] tweaked toml for git repo https://github.com/ThomasZumsteg/cryptopals written to /workspace/builds/worker-25/source/Cargo.toml [INFO] crate git repo https://github.com/ThomasZumsteg/cryptopals already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /workspace/builds/worker-25/source/src/main.rs [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd437b3072bcc9e6c3cd88c0070d2895f37581de524c6d1b19f76e39d62614b1 [INFO] running `Command { std: "docker" "start" "-a" "dd437b3072bcc9e6c3cd88c0070d2895f37581de524c6d1b19f76e39d62614b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd437b3072bcc9e6c3cd88c0070d2895f37581de524c6d1b19f76e39d62614b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd437b3072bcc9e6c3cd88c0070d2895f37581de524c6d1b19f76e39d62614b1", kill_on_drop: false }` [INFO] [stdout] dd437b3072bcc9e6c3cd88c0070d2895f37581de524c6d1b19f76e39d62614b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0379667b3d05a542c26a159e7d5cd7eef3f4d7984c5c36cc2e958417fe607c8a [INFO] running `Command { std: "docker" "start" "-a" "0379667b3d05a542c26a159e7d5cd7eef3f4d7984c5c36cc2e958417fe607c8a", kill_on_drop: false }` [INFO] [stderr] warning: file found to be present in multiple build targets: /opt/rustwide/workdir/src/main.rs [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.61 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling futures v0.1.28 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Compiling pkg-config v0.3.15 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling serde v1.0.98 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling openssl v0.10.24 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling indexmap v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.6.11 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.17 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling dtoa v0.4.4 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling unicase v2.4.0 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling try_from v0.3.2 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling miniz_oxide v0.3.2 [INFO] [stderr] Compiling unicode-normalization v0.1.8 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling openssl-src v111.5.0+1.1.1c [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling hyper v0.12.33 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling openssl-sys v0.9.48 [INFO] [stderr] Compiling mime v0.3.13 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling mime_guess v2.0.1 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling flate2 v1.0.11 [INFO] [stderr] Compiling tokio-executor v0.1.8 [INFO] [stderr] Compiling tokio-sync v0.1.6 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling http v0.1.18 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling backtrace v0.3.34 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling tokio-threadpool v0.1.15 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling regex v1.2.1 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling cookie v0.12.0 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling publicsuffix v1.5.2 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling serde_urlencoded v0.5.5 [INFO] [stderr] Compiling cookie_store v0.7.0 [INFO] [stderr] Compiling hyper-tls v0.3.2 [INFO] [stderr] Compiling reqwest v0.9.19 [INFO] [stderr] Compiling cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | '0'...'9' => chr as u8 - '0' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | 'a'...'f' => chr as u8 - 'a' as u8 + 10, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | 'A'...'Z' => chr as u8 - 'A' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | 'a'...'z' => chr as u8 - 'a' as u8 + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | '0'...'9' => chr as u8 - '0' as u8 + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/challenge_1.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_base8` [INFO] [stdout] --> src/challenge_1.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn from_base8(base8: &str) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_base64` [INFO] [stdout] --> src/challenge_1.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn from_base64(base64: &str) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_str` [INFO] [stdout] --> src/challenge_1.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn from_str(value: &str) -> Bytes { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/challenge_1.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn decode(&self, Bytes(key): &Bytes) -> Bytes { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_key_of_size` [INFO] [stdout] --> src/challenge_1.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn find_key_of_size(&self, key_size: usize) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blocks` [INFO] [stdout] --> src/challenge_1.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn blocks(&self, size: usize) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `score` [INFO] [stdout] --> src/challenge_1.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn score(&self) -> isize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_block` [INFO] [stdout] --> src/challenge_1.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn decode_block(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/challenge_1.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | fn hamming_distance(&self, Bytes(other): &Bytes) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `guess_key_sizes` [INFO] [stdout] --> src/challenge_1.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn guess_key_sizes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | '0'...'9' => chr as u8 - '0' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | 'a'...'f' => chr as u8 - 'a' as u8 + 10, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | 'A'...'Z' => chr as u8 - 'A' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | 'a'...'z' => chr as u8 - 'a' as u8 + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | '0'...'9' => chr as u8 - '0' as u8 + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/challenge_1.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | '0'...'9' => chr as u8 - '0' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | 'a'...'f' => chr as u8 - 'a' as u8 + 10, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | 'A'...'Z' => chr as u8 - 'A' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | 'a'...'z' => chr as u8 - 'a' as u8 + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | '0'...'9' => chr as u8 - '0' as u8 + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/challenge_1.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | '0'...'9' => chr as u8 - '0' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | 'a'...'f' => chr as u8 - 'a' as u8 + 10, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | 'A'...'Z' => chr as u8 - 'A' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | 'a'...'z' => chr as u8 - 'a' as u8 + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | '0'...'9' => chr as u8 - '0' as u8 + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/challenge_1.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | '0'...'9' => chr as u8 - '0' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | 'a'...'f' => chr as u8 - 'a' as u8 + 10, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | 'A'...'Z' => chr as u8 - 'A' as u8, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | 'a'...'z' => chr as u8 - 'a' as u8 + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | '0'...'9' => chr as u8 - '0' as u8 + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:20 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/challenge_1.rs:91:32 [INFO] [stdout] | [INFO] [stdout] 91 | 'a'...'z' | 'A'...'Z' | ' ' => 1, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/challenge_1.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `cryptopals` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | mod challenge_1; [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: associated function is never used: `from_base8` [INFO] [stdout] --> src/challenge_1.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn from_base8(base8: &str) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_base8` [INFO] [stdout] --> src/challenge_1.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn from_base8(base8: &str) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_key_of_size` [INFO] [stdout] --> src/challenge_1.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn find_key_of_size(&self, key_size: usize) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_str` [INFO] [stdout] --> src/challenge_1.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn from_str(value: &str) -> Bytes { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blocks` [INFO] [stdout] --> src/challenge_1.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn blocks(&self, size: usize) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `score` [INFO] [stdout] --> src/challenge_1.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn score(&self) -> isize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_base8` [INFO] [stdout] --> src/challenge_1.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn from_base8(base8: &str) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_block` [INFO] [stdout] --> src/challenge_1.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn decode_block(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode` [INFO] [stdout] --> src/challenge_1.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn decode(&self, Bytes(key): &Bytes) -> Bytes { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/challenge_1.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | fn hamming_distance(&self, Bytes(other): &Bytes) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `guess_key_sizes` [INFO] [stdout] --> src/challenge_1.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn guess_key_sizes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_key_of_size` [INFO] [stdout] --> src/challenge_1.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn find_key_of_size(&self, key_size: usize) -> Bytes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `blocks` [INFO] [stdout] --> src/challenge_1.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn blocks(&self, size: usize) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `score` [INFO] [stdout] --> src/challenge_1.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn score(&self) -> isize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decode_block` [INFO] [stdout] --> src/challenge_1.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn decode_block(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/challenge_1.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | fn hamming_distance(&self, Bytes(other): &Bytes) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `guess_key_sizes` [INFO] [stdout] --> src/challenge_1.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn guess_key_sizes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0379667b3d05a542c26a159e7d5cd7eef3f4d7984c5c36cc2e958417fe607c8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0379667b3d05a542c26a159e7d5cd7eef3f4d7984c5c36cc2e958417fe607c8a", kill_on_drop: false }` [INFO] [stdout] 0379667b3d05a542c26a159e7d5cd7eef3f4d7984c5c36cc2e958417fe607c8a