[INFO] fetching crate jwt-next 0.17.0... [INFO] testing jwt-next-0.17.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate jwt-next 0.17.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate jwt-next 0.17.0 [INFO] finished tweaking crates.io crate jwt-next 0.17.0 [INFO] tweaked toml for crates.io crate jwt-next 0.17.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate jwt-next 0.17.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jwt-next 0.17.0 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rsa v0.9.6 [INFO] [stderr] Downloaded subtle v2.5.0 [INFO] [stderr] Downloaded pkg-config v0.3.28 [INFO] [stderr] Downloaded pem v3.0.3 [INFO] [stderr] Downloaded der v0.7.8 [INFO] [stderr] Downloaded serde v1.0.195 [INFO] [stderr] Downloaded num-iter v0.1.43 [INFO] [stderr] Downloaded smallvec v1.12.0 [INFO] [stderr] Downloaded serde_json v1.0.111 [INFO] [stderr] Downloaded proc-macro2 v1.0.76 [INFO] [stderr] Downloaded serde_derive v1.0.195 [INFO] [stderr] Downloaded p384 v0.13.0 [INFO] [stderr] Downloaded libc v0.2.152 [INFO] [stderr] Downloaded openssl-src v300.2.1+3.2.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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0de0af053de218eeb07e11c2be45e0f23dc85d2c78051d822db9bcdf3f07eae5 [INFO] running `Command { std: "docker" "start" "-a" "0de0af053de218eeb07e11c2be45e0f23dc85d2c78051d822db9bcdf3f07eae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0de0af053de218eeb07e11c2be45e0f23dc85d2c78051d822db9bcdf3f07eae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0de0af053de218eeb07e11c2be45e0f23dc85d2c78051d822db9bcdf3f07eae5", kill_on_drop: false }` [INFO] [stdout] 0de0af053de218eeb07e11c2be45e0f23dc85d2c78051d822db9bcdf3f07eae5 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec3147350914b9b226e3677d7e8e9f6891c12f2091494a391da18f086cd57ad1 [INFO] running `Command { std: "docker" "start" "-a" "ec3147350914b9b226e3677d7e8e9f6891c12f2091494a391da18f086cd57ad1", kill_on_drop: false }` [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling smallvec v1.12.0 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling pem v3.0.3 [INFO] [stderr] Compiling der v0.7.8 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ff v0.13.0 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling rsa v0.9.6 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling p384 v0.13.0 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling jwt-next v0.17.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/token/verified.rs:116:40 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn parse_unverified(token_str: &str) -> Result, Error> { [INFO] [stdout] | ^^^^ ---------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | pub fn parse_unverified(token_str: &str) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.98s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ec3147350914b9b226e3677d7e8e9f6891c12f2091494a391da18f086cd57ad1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec3147350914b9b226e3677d7e8e9f6891c12f2091494a391da18f086cd57ad1", kill_on_drop: false }` [INFO] [stdout] ec3147350914b9b226e3677d7e8e9f6891c12f2091494a391da18f086cd57ad1 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc4166c54e0ab3540f8c12c71a0f21578414038c721f8fbef9358cc293805295 [INFO] running `Command { std: "docker" "start" "-a" "fc4166c54e0ab3540f8c12c71a0f21578414038c721f8fbef9358cc293805295", kill_on_drop: false }` [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/token/verified.rs:116:40 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn parse_unverified(token_str: &str) -> Result, Error> { [INFO] [stdout] | ^^^^ ---------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | pub fn parse_unverified(token_str: &str) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling jwt-next v0.17.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:166:18 [INFO] [stdout] | [INFO] [stdout] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/token/verified.rs:116:40 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn parse_unverified(token_str: &str) -> Result, Error> { [INFO] [stdout] | ^^^^ ---------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | pub fn parse_unverified(token_str: &str) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.59s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "fc4166c54e0ab3540f8c12c71a0f21578414038c721f8fbef9358cc293805295", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc4166c54e0ab3540f8c12c71a0f21578414038c721f8fbef9358cc293805295", kill_on_drop: false }` [INFO] [stdout] fc4166c54e0ab3540f8c12c71a0f21578414038c721f8fbef9358cc293805295 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 272b178f0bd7ce75b709fe4236d4741cad89469695545bf3e8663496bfe5c35d [INFO] running `Command { std: "docker" "start" "-a" "272b178f0bd7ce75b709fe4236d4741cad89469695545bf3e8663496bfe5c35d", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:162:18 [INFO] [stderr] | [INFO] [stderr] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stderr] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 162 | fn to_base64(&self) -> Result, Error>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:166:18 [INFO] [stderr] | [INFO] [stderr] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stderr] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 166 | fn to_base64(&self) -> Result, Error> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/token/verified.rs:116:40 [INFO] [stderr] | [INFO] [stderr] 116 | pub fn parse_unverified(token_str: &str) -> Result, Error> { [INFO] [stderr] | ^^^^ ---------- the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 116 | pub fn parse_unverified(token_str: &str) -> Result>, Error> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `jwt-next` (lib) generated 3 warnings (run `cargo fix --lib -p jwt-next` to apply 3 suggestions) [INFO] [stderr] warning: `jwt-next` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/jwt_next-c96fb0a178c7805d) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::genric_public_key_parse ... ok [INFO] [stdout] test algorithm::rust_crypto::tests::verify ... ok [INFO] [stdout] test claims::tests::private_claims ... ok [INFO] [stdout] test claims::tests::registered_claims ... ok [INFO] [stdout] test claims::tests::roundtrip ... ok [INFO] [stdout] test algorithm::rust_crypto::tests::sign ... ok [INFO] [stdout] test header::tests::from_base64 ... ok [INFO] [stdout] test tests::roundtrip ... ok [INFO] [stdout] test header::tests::precomputed_headers ... ok [INFO] [stdout] test tests::raw_data ... ok [INFO] [stdout] test header::tests::roundtrip ... ok [INFO] [stdout] test token::signed::tests::sign_claims ... ok [INFO] [stdout] test token::signed::tests::sign_unsigned_with_store ... ok [INFO] [stdout] test token::verified::tests::component_errors ... ok [INFO] [stdout] test token::verified::tests::verify_claims_with_missing_key ... ok [INFO] [stdout] test token::verified::tests::verify_claims_with_hash_map ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::es256_verify ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::rs256_verify ... ok [INFO] [stdout] test token::verified::tests::verify_claims_with_b_tree_map ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::genric_private_key_parse ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::rs256_sign ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::es256_sign ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] Doc-tests jwt_next [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/lib.rs - (line 158) ... FAILED [INFO] [stdout] test src/lib.rs - (line 181) ... FAILED [INFO] [stdout] test src/lib.rs - (line 208) ... FAILED [INFO] [stdout] test src/lib.rs - (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - (line 134) ... FAILED [INFO] [stdout] test src/lib.rs - (line 7) ... FAILED [INFO] [stdout] test src/lib.rs - (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... FAILED [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/algorithm/mod.rs - algorithm (line 6) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 158) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::{AlgorithmType, Header, SignWithKey, Token}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 181) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::{AlgorithmType, Header, Token, VerifyWithKey}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 208) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::{Header, SignWithStore, Token, VerifyWithStore}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sign_with_store` found for tuple `(&'static str, BTreeMap<&str, &str>)` in the current scope [INFO] [stdout] --> src/lib.rs:221:40 [INFO] [stdout] | [INFO] [stdout] 15 | let token_str = ("second_key", claims).sign_with_store(&store).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/token/signed.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn sign_with_store(self, store: &S) -> Result [INFO] [stdout] | --------------- the method is available for `(&'static str, BTreeMap<&str, &str>)` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SignWithStore` which provides `sign_with_store` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use jwt_next::SignWithStore; [INFO] [stdout] | [INFO] [stdout] help: there is a method `sign_with_key` with a similar name [INFO] [stdout] | [INFO] [stdout] 15 - let token_str = ("second_key", claims).sign_with_store(&store).unwrap(); [INFO] [stdout] 15 + let token_str = ("second_key", claims).sign_with_key(&store).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 114) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::SignWithKey; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sign_with_key` found for struct `BTreeMap` in the current scope [INFO] [stdout] --> src/lib.rs:124:24 [INFO] [stdout] | [INFO] [stdout] 12 | let token_str = claims.sign_with_key(&key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `BTreeMap<&str, &str>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/token/signed.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result; [INFO] [stdout] | ------------- the method is available for `BTreeMap<&str, &str>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SignWithKey` which provides `sign_with_key` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use jwt_next::SignWithKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 134) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::VerifyWithKey; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_with_key` found for reference `&str` in the current scope [INFO] [stdout] --> src/lib.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 11 | let claims: BTreeMap = token_str.verify_with_key(&key).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `VerifyWithKey` which provides `verify_with_key` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use jwt_next::VerifyWithKey; [INFO] [stdout] | [INFO] [stdout] help: there is a method `sign_with_key` with a similar name [INFO] [stdout] | [INFO] [stdout] 11 - let claims: BTreeMap = token_str.verify_with_key(&key).unwrap(); [INFO] [stdout] 11 + let claims: BTreeMap = token_str.sign_with_key(&key).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 7) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::SignWithKey; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 8 | use jwt::Error; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sign_with_key` found for struct `BTreeMap` in the current scope [INFO] [stdout] --> src/lib.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 13 | let token_str = claims.sign_with_key(&key)?; [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `BTreeMap<&str, &str>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/token/signed.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result; [INFO] [stdout] | ------------- the method is available for `BTreeMap<&str, &str>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SignWithKey` which provides `sign_with_key` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use jwt_next::SignWithKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 72) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::{AlgorithmType, Header, Token, VerifyWithKey}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 8 | use jwt::Error; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_with_key` found for reference `&str` in the current scope [INFO] [stdout] --> src/lib.rs:82:67 [INFO] [stdout] | [INFO] [stdout] 12 | let token: Token, _> = token_str.verify_with_key(&key)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `VerifyWithKey` which provides `verify_with_key` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use jwt_next::VerifyWithKey; [INFO] [stdout] | [INFO] [stdout] help: there is a method `sign_with_key` with a similar name [INFO] [stdout] | [INFO] [stdout] 12 - let token: Token, _> = token_str.verify_with_key(&key)?; [INFO] [stdout] 12 + let token: Token, _> = token_str.sign_with_key(&key)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 49) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::{AlgorithmType, Header, SignWithKey, Token}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 8 | use jwt::Error; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 27) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 4 | use jwt::VerifyWithKey; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jwt` [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 8 | use jwt::Error; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `jwt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jwt`, use `cargo add jwt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_with_key` found for reference `&str` in the current scope [INFO] [stdout] --> src/lib.rs:37:50 [INFO] [stdout] | [INFO] [stdout] 12 | let claims: BTreeMap = token_str.verify_with_key(&key)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `VerifyWithKey` which provides `verify_with_key` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use jwt_next::VerifyWithKey; [INFO] [stdout] | [INFO] [stdout] help: there is a method `sign_with_key` with a similar name [INFO] [stdout] | [INFO] [stdout] 12 - let claims: BTreeMap = token_str.verify_with_key(&key)?; [INFO] [stdout] 12 + let claims: BTreeMap = token_str.sign_with_key(&key)?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 114) [INFO] [stdout] src/lib.rs - (line 134) [INFO] [stdout] src/lib.rs - (line 158) [INFO] [stdout] src/lib.rs - (line 181) [INFO] [stdout] src/lib.rs - (line 208) [INFO] [stdout] src/lib.rs - (line 27) [INFO] [stdout] src/lib.rs - (line 49) [INFO] [stdout] src/lib.rs - (line 7) [INFO] [stdout] src/lib.rs - (line 72) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "272b178f0bd7ce75b709fe4236d4741cad89469695545bf3e8663496bfe5c35d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "272b178f0bd7ce75b709fe4236d4741cad89469695545bf3e8663496bfe5c35d", kill_on_drop: false }` [INFO] [stdout] 272b178f0bd7ce75b709fe4236d4741cad89469695545bf3e8663496bfe5c35d