[INFO] cloning repository https://github.com/charredlot/cryptopals-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/charredlot/cryptopals-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharredlot%2Fcryptopals-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharredlot%2Fcryptopals-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 50cecd398c41956e93fd8d91cfa04cc0bfa7fb56 [INFO] checking charredlot/cryptopals-rust against nightly-2024-02-05 for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharredlot%2Fcryptopals-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/charredlot/cryptopals-rust on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/charredlot/cryptopals-rust [INFO] finished tweaking git repo https://github.com/charredlot/cryptopals-rust [INFO] tweaked toml for git repo https://github.com/charredlot/cryptopals-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/charredlot/cryptopals-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-traits v0.1.40 [INFO] [stderr] Downloaded custom_derive v0.1.7 [INFO] [stderr] Downloaded byte-tools v0.2.0 [INFO] [stderr] Downloaded magenta-sys v0.1.1 [INFO] [stderr] Downloaded digest v0.6.2 [INFO] [stderr] Downloaded rust-gmp v0.5.0 [INFO] [stderr] Downloaded generic-array v0.8.3 [INFO] [stderr] Downloaded block-buffer v0.2.0 [INFO] [stderr] Downloaded odds v0.2.25 [INFO] [stderr] Downloaded typenum v1.9.0 [INFO] [stderr] Downloaded rand v0.3.16 [INFO] [stderr] Downloaded libc v0.2.30 [INFO] [stderr] Downloaded sha2 v0.6.0 [INFO] [stderr] Downloaded conv v0.3.3 [INFO] [stderr] Downloaded magenta v0.1.1 [INFO] [stderr] Downloaded nodrop v0.1.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32c35819fc1b6e30eb5fe43f2e578f9fddfb59539113f20777c8455a00af46c8 [INFO] running `Command { std: "docker" "start" "-a" "32c35819fc1b6e30eb5fe43f2e578f9fddfb59539113f20777c8455a00af46c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32c35819fc1b6e30eb5fe43f2e578f9fddfb59539113f20777c8455a00af46c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32c35819fc1b6e30eb5fe43f2e578f9fddfb59539113f20777c8455a00af46c8", kill_on_drop: false }` [INFO] [stdout] 32c35819fc1b6e30eb5fe43f2e578f9fddfb59539113f20777c8455a00af46c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4f6dac483e6720e89ae63233bd4f487097a5d3fb5aae826990d299ca581993d [INFO] running `Command { std: "docker" "start" "-a" "b4f6dac483e6720e89ae63233bd4f487097a5d3fb5aae826990d299ca581993d", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.9.0 [INFO] [stderr] Checking odds v0.2.25 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Checking libc v0.2.30 [INFO] [stderr] Checking num-traits v0.1.40 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking nodrop v0.1.11 [INFO] [stderr] Checking rand v0.3.16 [INFO] [stderr] Checking rust-gmp v0.5.0 [INFO] [stderr] Checking generic-array v0.8.3 [INFO] [stderr] Checking digest v0.6.2 [INFO] [stderr] Checking block-buffer v0.2.0 [INFO] [stderr] Checking sha2 v0.6.0 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/aes/cbc_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/aes/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod cbc_test; [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/base64.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | UPPER_A...UPPER_Z => c - UPPER_A, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/base64.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | LOWER_A...LOWER_Z => (c - LOWER_A) + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/base64.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | DIGIT_0...DIGIT_9 => (c - DIGIT_0) + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/mt19937.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] 16 + const MASK_UPPER: u32 = 1u32 << R; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/aes/cbc_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str; [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/base64.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | UPPER_A...UPPER_Z => c - UPPER_A, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/base64.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | LOWER_A...LOWER_Z => (c - LOWER_A) + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/base64.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | DIGIT_0...DIGIT_9 => (c - DIGIT_0) + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/mt19937.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] 16 + const MASK_UPPER: u32 = 1u32 << R; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/sha1.rs:231:18 [INFO] [stdout] | [INFO] [stdout] 231 | 0...19 => (ff(b, c, d), 0x5a827999), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | 20...39 => (gg(b, c, d), 0x6ed9eba1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:233:19 [INFO] [stdout] | [INFO] [stdout] 233 | 40...59 => (hh(b, c, d), 0x8f1bbcdc), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:234:19 [INFO] [stdout] | [INFO] [stdout] 234 | 60...79 => (ii(b, c, d), 0xca62c1d6), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/sha1.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | try!(write!(f, "{:08x}", i)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/url.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 27 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/sha1.rs:231:18 [INFO] [stdout] | [INFO] [stdout] 231 | 0...19 => (ff(b, c, d), 0x5a827999), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | 20...39 => (gg(b, c, d), 0x6ed9eba1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:233:19 [INFO] [stdout] | [INFO] [stdout] 233 | 40...59 => (hh(b, c, d), 0x8f1bbcdc), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:234:19 [INFO] [stdout] | [INFO] [stdout] 234 | 60...79 => (ii(b, c, d), 0xca62c1d6), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/sha1.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | try!(write!(f, "{:08x}", i)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/url.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 27 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &dyn AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &dyn AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &AESCipher, email: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &dyn AESCipher, email: &str) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &AESCipher) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &dyn AESCipher) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &dyn AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &dyn AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &AESCipher, email: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &dyn AESCipher, email: &str) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &AESCipher) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &dyn AESCipher) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pkcs7.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pkcs7.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.33s [INFO] running `Command { std: "docker" "inspect" "b4f6dac483e6720e89ae63233bd4f487097a5d3fb5aae826990d299ca581993d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4f6dac483e6720e89ae63233bd4f487097a5d3fb5aae826990d299ca581993d", kill_on_drop: false }` [INFO] [stdout] b4f6dac483e6720e89ae63233bd4f487097a5d3fb5aae826990d299ca581993d [INFO] checking charredlot/cryptopals-rust against nightly-2024-02-05+rustflags=-Dunexpected_cfgs+cargoflags=-Zcheck-cfg for check-cfg-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharredlot%2Fcryptopals-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/charredlot/cryptopals-rust on toolchain nightly-2024-02-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/charredlot/cryptopals-rust [INFO] finished tweaking git repo https://github.com/charredlot/cryptopals-rust [INFO] tweaked toml for git repo https://github.com/charredlot/cryptopals-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/charredlot/cryptopals-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-02-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+nightly-2024-02-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ddb79885990ffd5bc71ce2fb335b1cbdbfe49330f0e0fd79ad01222d9f7f64f [INFO] running `Command { std: "docker" "start" "-a" "3ddb79885990ffd5bc71ce2fb335b1cbdbfe49330f0e0fd79ad01222d9f7f64f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ddb79885990ffd5bc71ce2fb335b1cbdbfe49330f0e0fd79ad01222d9f7f64f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ddb79885990ffd5bc71ce2fb335b1cbdbfe49330f0e0fd79ad01222d9f7f64f", kill_on_drop: false }` [INFO] [stdout] 3ddb79885990ffd5bc71ce2fb335b1cbdbfe49330f0e0fd79ad01222d9f7f64f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dunexpected_cfgs" "-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" "+nightly-2024-02-05" "check" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zcheck-cfg", kill_on_drop: false }` [INFO] [stdout] 0e9c5a4647498f1048915bb9c484a5b0d785408415ced1702a12716a287a3923 [INFO] running `Command { std: "docker" "start" "-a" "0e9c5a4647498f1048915bb9c484a5b0d785408415ced1702a12716a287a3923", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.9.0 [INFO] [stderr] Checking odds v0.2.25 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Checking libc v0.2.30 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking num-traits v0.1.40 [INFO] [stderr] Checking nodrop v0.1.11 [INFO] [stderr] Checking rand v0.3.16 [INFO] [stderr] Checking rust-gmp v0.5.0 [INFO] [stderr] Checking generic-array v0.8.3 [INFO] [stderr] Checking digest v0.6.2 [INFO] [stderr] Checking block-buffer v0.2.0 [INFO] [stderr] Checking sha2 v0.6.0 [INFO] [stderr] Checking cryptopals v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/aes/cbc_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/aes/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod cbc_test; [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/base64.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | UPPER_A...UPPER_Z => c - UPPER_A, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/base64.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | LOWER_A...LOWER_Z => (c - LOWER_A) + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/base64.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | DIGIT_0...DIGIT_9 => (c - DIGIT_0) + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/mt19937.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] 16 + const MASK_UPPER: u32 = 1u32 << R; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> src/sha1.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/sha1.rs:231:18 [INFO] [stdout] | [INFO] [stdout] 231 | 0...19 => (ff(b, c, d), 0x5a827999), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | 20...39 => (gg(b, c, d), 0x6ed9eba1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:233:19 [INFO] [stdout] | [INFO] [stdout] 233 | 40...59 => (hh(b, c, d), 0x8f1bbcdc), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/aes/cbc_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str; [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/sha1.rs:234:19 [INFO] [stdout] | [INFO] [stdout] 234 | 60...79 => (ii(b, c, d), 0xca62c1d6), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/sha1.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | try!(write!(f, "{:08x}", i)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/url.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 27 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/base64.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 94 | UPPER_A...UPPER_Z => c - UPPER_A, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/base64.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | LOWER_A...LOWER_Z => (c - LOWER_A) + 26, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/base64.rs:96:16 [INFO] [stdout] | [INFO] [stdout] 96 | DIGIT_0...DIGIT_9 => (c - DIGIT_0) + 52, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/mt19937.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - const MASK_UPPER: u32 = (1u32 << R); [INFO] [stdout] 16 + const MASK_UPPER: u32 = 1u32 << R; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected `cfg` condition name: `rustfmt` [INFO] [stdout] --> src/sha1.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `debug_assertions`, `doc`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `unix`, `windows` [INFO] [stdout] = help: consider using a Cargo feature instead or adding `println!("cargo:rustc-check-cfg=cfg(rustfmt)");` to the top of a `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: requested on the command line with `-D unexpected-cfgs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/sha1.rs:231:18 [INFO] [stdout] | [INFO] [stdout] 231 | 0...19 => (ff(b, c, d), 0x5a827999), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | 20...39 => (gg(b, c, d), 0x6ed9eba1), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:233:19 [INFO] [stdout] | [INFO] [stdout] 233 | 40...59 => (hh(b, c, d), 0x8f1bbcdc), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/sha1.rs:234:19 [INFO] [stdout] | [INFO] [stdout] 234 | 60...79 => (ii(b, c, d), 0xca62c1d6), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/sha1.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | try!(write!(f, "{:08x}", i)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/url.rs:27:6 [INFO] [stdout] | [INFO] [stdout] 27 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &dyn AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &dyn AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &AESCipher, email: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &dyn AESCipher, email: &str) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &AESCipher) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &dyn AESCipher) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub type EncryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = Fn (&[u8]) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub type DecryptOracle = dyn Fn (&[u8]) -> Vec; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ssv_aes_encrypt(cipher: &dyn AESCipher, plaintext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 17 | pub fn ssv_aes_decrypt(cipher: &dyn AESCipher, ciphertext: &[u8]) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ssv.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 | pub fn ssv_aes_decrypt_and_check(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:57:33 [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &AESCipher, email: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | fn encrypt_profile_for(cipher: &dyn AESCipher, email: &str) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &AESCipher, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 61 | fn decrypt_profile_for(cipher: &dyn AESCipher, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/url.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &AESCipher) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 68 | fn trick_url_decode(cipher: &dyn AESCipher) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pkcs7.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/pkcs7.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 19 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cryptopals` (lib) due to 2 previous errors; 20 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `cryptopals` (lib test) due to 2 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0e9c5a4647498f1048915bb9c484a5b0d785408415ced1702a12716a287a3923", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e9c5a4647498f1048915bb9c484a5b0d785408415ced1702a12716a287a3923", kill_on_drop: false }` [INFO] [stdout] 0e9c5a4647498f1048915bb9c484a5b0d785408415ced1702a12716a287a3923