[INFO] fetching crate cose-rust-plus 0.2.0...
[INFO] checking cose-rust-plus-0.2.0 against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3
[INFO] extracting crate cose-rust-plus 0.2.0 into /workspace/builds/worker-4-tc2/source
[INFO] started tweaking crates.io crate cose-rust-plus 0.2.0
[INFO] finished tweaking crates.io crate cose-rust-plus 0.2.0
[INFO] tweaked toml for crates.io crate cose-rust-plus 0.2.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate cose-rust-plus 0.2.0 on toolchain a5689b034ad287112f709693384a37f1377eb9cc
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 37 packages to highest compatible versions
[INFO] [stderr]       Adding rand v0.8.8 (available: v0.10.3)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe
[INFO] running `Command { std: "docker" "start" "76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.191
[INFO] [stderr]    Compiling find-msvc-tools v0.1.15
[INFO] [stderr]    Compiling unicode-ident v1.0.27
[INFO] [stderr]    Compiling zerocopy v0.8.63
[INFO] [stderr]    Compiling openssl v0.10.81
[INFO] [stderr]     Checking foreign-types-shared v0.1.1
[INFO] [stderr]     Checking cbor-codec-plus v0.8.0
[INFO] [stderr]     Checking foreign-types v0.3.2
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling cc v1.9.0
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]    Compiling syn v2.0.119
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling openssl-src v300.6.1+3.6.3
[INFO] [stderr]    Compiling openssl-sys v0.9.117
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.8
[INFO] [stderr]     Checking cose-rust-plus v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `HkdfMode`
[INFO] [stdout]   --> src/algs.rs:15:25
[INFO] [stdout]    |
[INFO] [stdout] 15 | use openssl::pkey_ctx::{HkdfMode, PkeyCtx};
[INFO] [stdout]    |                         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::common`
[INFO] [stdout]    --> src/utils.rs:128:5
[INFO] [stdout]     |
[INFO] [stdout] 128 | use crate::common;
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::headers`
[INFO] [stdout]    --> src/utils.rs:132:5
[INFO] [stdout]     |
[INFO] [stdout] 132 | use crate::headers;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HkdfMode`
[INFO] [stdout]   --> src/algs.rs:15:25
[INFO] [stdout]    |
[INFO] [stdout] 15 | use openssl::pkey_ctx::{HkdfMode, PkeyCtx};
[INFO] [stdout]    |                         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::common`
[INFO] [stdout]    --> src/utils.rs:128:5
[INFO] [stdout]     |
[INFO] [stdout] 128 | use crate::common;
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::headers`
[INFO] [stdout]    --> src/utils.rs:132:5
[INFO] [stdout]     |
[INFO] [stdout] 132 | use crate::headers;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `cipher_size` is assigned to, but never used
[INFO] [stdout]    --> src/algs.rs:962:17
[INFO] [stdout]     |
[INFO] [stdout] 962 |             let cipher_size;
[INFO] [stdout]     |                 ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_cipher_size` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `cipher_size` is never read
[INFO] [stdout]    --> src/algs.rs:968:17
[INFO] [stdout]     |
[INFO] [stdout] 965 |                 cipher_size = 16;
[INFO] [stdout]     |                 ---------------- `cipher_size` is overwritten here before the previous value is read
[INFO] [stdout] ...
[INFO] [stdout] 968 |                 cipher_size = 32;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `cipher_size` is never read
[INFO] [stdout]    --> src/algs.rs:965:17
[INFO] [stdout]     |
[INFO] [stdout] 965 |                 cipher_size = 16;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `OKP_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:231:18
[INFO] [stdout]     |
[INFO] [stdout] 231 | pub(crate) const OKP_ALGS: [i32; 1] = [EDDSA];
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `EC2_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:232:18
[INFO] [stdout]     |
[INFO] [stdout] 232 | pub(crate) const EC2_ALGS: [i32; 4] = [ES256, ES384, ES512, ES256K];
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `RSA_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:233:18
[INFO] [stdout]     |
[INFO] [stdout] 233 | pub(crate) const RSA_ALGS: [i32; 3] = [PS256, PS384, PS512];
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SYMMETRIC_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:234:18
[INFO] [stdout]     |
[INFO] [stdout] 234 | pub(crate) const SYMMETRIC_ALGS: [i32; 28] = [
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `usize`
[INFO] [stdout]    --> src/algs.rs:776:36
[INFO] [stdout]     |
[INFO] [stdout] 776 |     let mut ciphertext = vec![0u8; (size + 8).into()];
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 776 -     let mut ciphertext = vec![0u8; (size + 8).into()];
[INFO] [stdout] 776 +     let mut ciphertext = vec![0u8; (size + 8)];
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 776 -     let mut ciphertext = vec![0u8; (size + 8).into()];
[INFO] [stdout] 776 +     let mut ciphertext = vec![0u8; <usize as Into<_>>::into((size + 8))];
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `cipher_size` is assigned to, but never used
[INFO] [stdout]    --> src/algs.rs:962:17
[INFO] [stdout]     |
[INFO] [stdout] 962 |             let cipher_size;
[INFO] [stdout]     |                 ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_cipher_size` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `cipher_size` is never read
[INFO] [stdout]    --> src/algs.rs:968:17
[INFO] [stdout]     |
[INFO] [stdout] 965 |                 cipher_size = 16;
[INFO] [stdout]     |                 ---------------- `cipher_size` is overwritten here before the previous value is read
[INFO] [stdout] ...
[INFO] [stdout] 968 |                 cipher_size = 32;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `cipher_size` is never read
[INFO] [stdout]    --> src/algs.rs:965:17
[INFO] [stdout]     |
[INFO] [stdout] 965 |                 cipher_size = 16;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `cose-rust-plus` (lib) due to 1 previous error; 10 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: constant `OKP_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:231:18
[INFO] [stdout]     |
[INFO] [stdout] 231 | pub(crate) const OKP_ALGS: [i32; 1] = [EDDSA];
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `EC2_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:232:18
[INFO] [stdout]     |
[INFO] [stdout] 232 | pub(crate) const EC2_ALGS: [i32; 4] = [ES256, ES384, ES512, ES256K];
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `RSA_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:233:18
[INFO] [stdout]     |
[INFO] [stdout] 233 | pub(crate) const RSA_ALGS: [i32; 3] = [PS256, PS384, PS512];
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SYMMETRIC_ALGS` is never used
[INFO] [stdout]    --> src/algs.rs:234:18
[INFO] [stdout]     |
[INFO] [stdout] 234 | pub(crate) const SYMMETRIC_ALGS: [i32; 28] = [
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `usize`
[INFO] [stdout]    --> src/algs.rs:776:36
[INFO] [stdout]     |
[INFO] [stdout] 776 |     let mut ciphertext = vec![0u8; (size + 8).into()];
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 776 -     let mut ciphertext = vec![0u8; (size + 8).into()];
[INFO] [stdout] 776 +     let mut ciphertext = vec![0u8; (size + 8)];
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 776 -     let mut ciphertext = vec![0u8; (size + 8).into()];
[INFO] [stdout] 776 +     let mut ciphertext = vec![0u8; <usize as Into<_>>::into((size + 8))];
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `cose-rust-plus` (lib test) due to 1 previous error; 10 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe", kill_on_drop: false }`
[INFO] [stdout] 76bb9eca82efbabb7cd23a3bb8d93bd941670c507e422a6ef370c7d2c89a59fe
