[INFO] cloning repository https://github.com/vbartu/crypto [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vbartu/crypto" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvbartu%2Fcrypto", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvbartu%2Fcrypto'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c3f98bc4db639ccd64553638a43f12390df2721 [INFO] checking vbartu/crypto against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvbartu%2Fcrypto" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vbartu/crypto on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vbartu/crypto [INFO] finished tweaking git repo https://github.com/vbartu/crypto [INFO] tweaked toml for git repo https://github.com/vbartu/crypto written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/vbartu/crypto already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9bd6186ea702b8ed8540b524afa9b04f4d6cb39bc1d82c80556e7f7acced242e [INFO] running `Command { std: "docker" "start" "-a" "9bd6186ea702b8ed8540b524afa9b04f4d6cb39bc1d82c80556e7f7acced242e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9bd6186ea702b8ed8540b524afa9b04f4d6cb39bc1d82c80556e7f7acced242e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bd6186ea702b8ed8540b524afa9b04f4d6cb39bc1d82c80556e7f7acced242e", kill_on_drop: false }` [INFO] [stdout] 9bd6186ea702b8ed8540b524afa9b04f4d6cb39bc1d82c80556e7f7acced242e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f33da7731fe955f7058b67cfbe9572ec88639db467d012307513712efa2adf88 [INFO] running `Command { std: "docker" "start" "-a" "f33da7731fe955f7058b67cfbe9572ec88639db467d012307513712efa2adf88", kill_on_drop: false }` [INFO] [stderr] Checking crypto_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `aes_128::Aes128Cipher` [INFO] [stdout] --> src/cipher.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use aes_128::Aes128Cipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `des::DesCipher` [INFO] [stdout] --> src/cipher.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use des::DesCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sha224`, `Sha256`, `Sha384`, `Sha512_224`, `Sha512_256`, `Sha512` [INFO] [stdout] --> src/hash.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub use sha2::{Sha224,Sha256,Sha384,Sha512,Sha512_224,Sha512_256}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/modes/pkcs7_padding.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `des::DesCipher` [INFO] [stdout] --> src/cipher.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use des::DesCipher; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/modes/pkcs7_padding.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:144:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `encrypt`, `decrypt`, and `block_size` are never used [INFO] [stdout] --> src/cipher.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub trait Cipher { [INFO] [stdout] | ------ associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn new(key: &[u8]) -> Result where Self: Sized; [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | [INFO] [stdout] 33 | fn encrypt(&self, data: &[u8]) -> Result, CipherErr>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | [INFO] [stdout] 35 | fn decrypt(&self, data: &[u8]) -> Result, CipherErr>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | [INFO] [stdout] 37 | fn block_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `digest`, and `digest_size` are never used [INFO] [stdout] --> src/hash.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Hash { [INFO] [stdout] | ---- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 11 | fn new() -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn digest(&mut self, data: &[u8]) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn digest_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pad` is never used [INFO] [stdout] --> src/modes/pkcs7_padding.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn pad(data: &[u8], block_size: usize) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unpad` is never used [INFO] [stdout] --> src/modes/pkcs7_padding.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn unpad(data: &[u8]) -> &[u8] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/modes/ecb.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn encrypt(data: &[u8], cipher: &impl Cipher) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/modes/ecb.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn decrypt(data: &[u8], cipher: &impl Cipher) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/modes/cbc.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn encrypt(data: &[u8], cipher: &impl Cipher, iv: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/modes/cbc.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn decrypt(data: &[u8], cipher: &impl Cipher, iv: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/modes/ctr.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn encrypt(data: &[u8], cipher: &impl Cipher, nonce: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/modes/ctr.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn decrypt(data: &[u8], cipher: &impl Cipher, nonce: &[u8]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `digest_size` is never used [INFO] [stdout] --> src/hash.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Hash { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn digest_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "f33da7731fe955f7058b67cfbe9572ec88639db467d012307513712efa2adf88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f33da7731fe955f7058b67cfbe9572ec88639db467d012307513712efa2adf88", kill_on_drop: false }` [INFO] [stdout] f33da7731fe955f7058b67cfbe9572ec88639db467d012307513712efa2adf88