[INFO] fetching crate cose-rust-plus 0.2.0... [INFO] testing cose-rust-plus-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate cose-rust-plus 0.2.0 into /workspace/builds/worker-5-tc1/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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cose-rust-plus 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 35 packages to latest compatible versions [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cbor-codec-plus v0.8.0 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51e71c849b6cfbc7cb86a8de7baf99f857bf60b839eef059f749da3c339111c9 [INFO] running `Command { std: "docker" "start" "-a" "51e71c849b6cfbc7cb86a8de7baf99f857bf60b839eef059f749da3c339111c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51e71c849b6cfbc7cb86a8de7baf99f857bf60b839eef059f749da3c339111c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51e71c849b6cfbc7cb86a8de7baf99f857bf60b839eef059f749da3c339111c9", kill_on_drop: false }` [INFO] [stdout] 51e71c849b6cfbc7cb86a8de7baf99f857bf60b839eef059f749da3c339111c9 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f88ca5683350ff8e36f62ddd2b91a6fa5c6e497a89e88c71a707f57bf3b1d176 [INFO] running `Command { std: "docker" "start" "-a" "f88ca5683350ff8e36f62ddd2b91a6fa5c6e497a89e88c71a707f57bf3b1d176", kill_on_drop: false }` [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling openssl-src v300.5.2+3.5.2 [INFO] [stderr] Compiling cbor-codec-plus v0.8.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling 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: 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: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] = 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:968:17 [INFO] [stdout] | [INFO] [stdout] 968 | cipher_size = 32; [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 10s [INFO] running `Command { std: "docker" "inspect" "f88ca5683350ff8e36f62ddd2b91a6fa5c6e497a89e88c71a707f57bf3b1d176", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f88ca5683350ff8e36f62ddd2b91a6fa5c6e497a89e88c71a707f57bf3b1d176", kill_on_drop: false }` [INFO] [stdout] f88ca5683350ff8e36f62ddd2b91a6fa5c6e497a89e88c71a707f57bf3b1d176 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1157d7b5e42dfbbe0a619bf3e0bf4bf0d16f1913ed631c2e0165c6831116c35 [INFO] running `Command { std: "docker" "start" "-a" "a1157d7b5e42dfbbe0a619bf3e0bf4bf0d16f1913ed631c2e0165c6831116c35", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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: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] = 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:968:17 [INFO] [stdout] | [INFO] [stdout] 968 | cipher_size = 32; [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] 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: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] = 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:968:17 [INFO] [stdout] | [INFO] [stdout] 968 | cipher_size = 32; [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.97s [INFO] running `Command { std: "docker" "inspect" "a1157d7b5e42dfbbe0a619bf3e0bf4bf0d16f1913ed631c2e0165c6831116c35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1157d7b5e42dfbbe0a619bf3e0bf4bf0d16f1913ed631c2e0165c6831116c35", kill_on_drop: false }` [INFO] [stdout] a1157d7b5e42dfbbe0a619bf3e0bf4bf0d16f1913ed631c2e0165c6831116c35 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a68161418c137df3fd1a4ec0a4d9866c9c02e4cd6394382417751b844b6bfb9e [INFO] running `Command { std: "docker" "start" "-a" "a68161418c137df3fd1a4ec0a4d9866c9c02e4cd6394382417751b844b6bfb9e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `HkdfMode` [INFO] [stderr] --> src/algs.rs:15:25 [INFO] [stderr] | [INFO] [stderr] 15 | use openssl::pkey_ctx::{HkdfMode, PkeyCtx}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::common` [INFO] [stderr] --> src/utils.rs:128:5 [INFO] [stderr] | [INFO] [stderr] 128 | use crate::common; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::headers` [INFO] [stderr] --> src/utils.rs:132:5 [INFO] [stderr] | [INFO] [stderr] 132 | use crate::headers; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `cipher_size` is assigned to, but never used [INFO] [stderr] --> src/algs.rs:962:17 [INFO] [stderr] | [INFO] [stderr] 962 | let cipher_size; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_cipher_size` instead [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `cipher_size` is never read [INFO] [stderr] --> src/algs.rs:965:17 [INFO] [stderr] | [INFO] [stderr] 965 | cipher_size = 16; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `cipher_size` is never read [INFO] [stderr] --> src/algs.rs:968:17 [INFO] [stderr] | [INFO] [stderr] 968 | cipher_size = 32; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: constant `OKP_ALGS` is never used [INFO] [stderr] --> src/algs.rs:231:18 [INFO] [stderr] | [INFO] [stderr] 231 | pub(crate) const OKP_ALGS: [i32; 1] = [EDDSA]; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `EC2_ALGS` is never used [INFO] [stderr] --> src/algs.rs:232:18 [INFO] [stderr] | [INFO] [stderr] 232 | pub(crate) const EC2_ALGS: [i32; 4] = [ES256, ES384, ES512, ES256K]; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `RSA_ALGS` is never used [INFO] [stderr] --> src/algs.rs:233:18 [INFO] [stderr] | [INFO] [stderr] 233 | pub(crate) const RSA_ALGS: [i32; 3] = [PS256, PS384, PS512]; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SYMMETRIC_ALGS` is never used [INFO] [stderr] --> src/algs.rs:234:18 [INFO] [stderr] | [INFO] [stderr] 234 | pub(crate) const SYMMETRIC_ALGS: [i32; 28] = [ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `cose-rust-plus` (lib) generated 10 warnings (run `cargo fix --lib -p cose-rust-plus` to apply 3 suggestions) [INFO] [stderr] warning: `cose-rust-plus` (lib test) generated 10 warnings (10 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cose-80baabead0fab831) [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test test_vecs::c11 ... ok [INFO] [stdout] test test_vecs::c13 ... ok [INFO] [stdout] test test_vecs::c52 ... ok [INFO] [stdout] test test_vecs::x5t ... ok [INFO] [stdout] test test_vecs::c61 ... ok [INFO] [stdout] test test_vecs::rsa ... ok [INFO] [stdout] test test_vecs::c31 ... ok [INFO] [stdout] test test_vecs::c51 ... ok [INFO] [stdout] test test_vecs::x5bag ... ok [INFO] [stdout] test test_vecs::c21 ... ok [INFO] [stdout] test test_vecs::x5chain_fail ... ok [INFO] [stdout] test test_vecs::c53 ... ok [INFO] [stdout] test test_vecs::c33 ... ok [INFO] [stdout] test test_vecs::c54 ... ok [INFO] [stdout] test test_vecs::x5chain ... ok [INFO] [stdout] test test_vecs::c34 ... ok [INFO] [stdout] test test_vecs::x5_sender ... ok [INFO] [stdout] test test_vecs::c12 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] Doc-tests cose [INFO] [stdout] [INFO] [stdout] running 24 tests [INFO] [stdout] test src/message.rs - message (line 189) ... ok [INFO] [stdout] test src/keys.rs - keys (line 4) ... ok [INFO] [stdout] test src/message.rs - message (line 138) ... ok [INFO] [stdout] test src/lib.rs - (line 194) ... ok [INFO] [stdout] test src/lib.rs - (line 159) ... ok [INFO] [stdout] test src/lib.rs - (line 20) ... ok [INFO] [stdout] test src/lib.rs - (line 56) ... ok [INFO] [stdout] test src/message.rs - message (line 381) ... ok [INFO] [stdout] test src/message.rs - message (line 263) ... ok [INFO] [stdout] test src/agent.rs - agent (line 103) ... ok [INFO] [stdout] test src/utils.rs - utils (line 11) ... FAILED [INFO] [stdout] test src/lib.rs - (line 122) ... ok [INFO] [stdout] test src/utils.rs - utils (line 90) ... FAILED [INFO] [stdout] test src/message.rs - message (line 328) ... ok [INFO] [stdout] test src/message.rs - message (line 10) ... ok [INFO] [stdout] test src/agent.rs - agent (line 13) ... ok [INFO] [stdout] test src/utils.rs - utils (line 52) ... FAILED [INFO] [stdout] test src/message.rs - message (line 222) ... ok [INFO] [stdout] test src/lib.rs - (line 89) ... ok [INFO] [stdout] test src/message.rs - message (line 416) ... ok [INFO] [stdout] test src/message.rs - message (line 82) ... ok [INFO] [stdout] test src/message.rs - message (line 517) ... ok [INFO] [stdout] test src/message.rs - message (line 46) ... ok [INFO] [stdout] test src/message.rs - message (line 452) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/utils.rs - utils (line 11) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `decode_json_key` in module `utils` [INFO] [stdout] --> src/utils.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 29 | let key = utils::decode_json_key(key_json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `utils` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/utils.rs:286:8 [INFO] [stdout] | [INFO] [stdout] 285 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 286 | pub fn decode_json_key(json_key: &str) -> CoseResultWithRet { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_json` in module `utils` [INFO] [stdout] --> src/utils.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 31 | let res = utils::decode_json(data, &key, SIG1_TAG).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `utils` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/utils.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 173 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 174 | pub fn decode_json( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils (line 90) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `decode_json_key` in module `utils` [INFO] [stdout] --> src/utils.rs:114:22 [INFO] [stdout] | [INFO] [stdout] 27 | let key = utils::decode_json_key(key_json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `utils` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/utils.rs:286:8 [INFO] [stdout] | [INFO] [stdout] 285 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 286 | pub fn decode_json_key(json_key: &str) -> CoseResultWithRet { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_json` in module `utils` [INFO] [stdout] --> src/utils.rs:116:22 [INFO] [stdout] | [INFO] [stdout] 29 | let res = utils::decode_json(data, &key, MAC0_TAG).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `utils` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/utils.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 173 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 174 | pub fn decode_json( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/utils.rs - utils (line 52) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `decode_json_key` in module `utils` [INFO] [stdout] --> src/utils.rs:75:22 [INFO] [stdout] | [INFO] [stdout] 25 | let key = utils::decode_json_key(key_json).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `utils` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/utils.rs:286:8 [INFO] [stdout] | [INFO] [stdout] 285 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 286 | pub fn decode_json_key(json_key: &str) -> CoseResultWithRet { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_json` in module `utils` [INFO] [stdout] --> src/utils.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 27 | let res = utils::decode_json(data, &key, ENC0_TAG).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `utils` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/utils.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 173 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 174 | pub fn decode_json( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/utils.rs - utils (line 11) [INFO] [stdout] src/utils.rs - utils (line 52) [INFO] [stdout] src/utils.rs - utils (line 90) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 21 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.52s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "a68161418c137df3fd1a4ec0a4d9866c9c02e4cd6394382417751b844b6bfb9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a68161418c137df3fd1a4ec0a4d9866c9c02e4cd6394382417751b844b6bfb9e", kill_on_drop: false }` [INFO] [stdout] a68161418c137df3fd1a4ec0a4d9866c9c02e4cd6394382417751b844b6bfb9e