[INFO] fetching crate jwt-next 0.17.0... [INFO] testing jwt-next-0.17.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate jwt-next 0.17.0 into /workspace/builds/worker-1-tc2/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-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate jwt-next 0.17.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cbc4f90ced6e95a6ea70387310e3606f30fd7a3d40ebbec8a1ab186213923826 [INFO] running `Command { std: "docker" "start" "-a" "cbc4f90ced6e95a6ea70387310e3606f30fd7a3d40ebbec8a1ab186213923826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbc4f90ced6e95a6ea70387310e3606f30fd7a3d40ebbec8a1ab186213923826", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbc4f90ced6e95a6ea70387310e3606f30fd7a3d40ebbec8a1ab186213923826", kill_on_drop: false }` [INFO] [stdout] cbc4f90ced6e95a6ea70387310e3606f30fd7a3d40ebbec8a1ab186213923826 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43a2fa9cf3a6167125e1ebe6be38dcd1033c9e6f821450e97c44d52855242705 [INFO] running `Command { std: "docker" "start" "-a" "43a2fa9cf3a6167125e1ebe6be38dcd1033c9e6f821450e97c44d52855242705", kill_on_drop: false }` [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling typenum v1.17.0 [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 generic-array v0.14.7 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling der v0.7.8 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling smallvec v1.12.0 [INFO] [stderr] Compiling pem v3.0.3 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ff v0.13.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 pkcs1 v0.7.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling rsa v0.9.6 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling p384 v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.111 [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 27.19s [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 5` [INFO] running `Command { std: "docker" "inspect" "43a2fa9cf3a6167125e1ebe6be38dcd1033c9e6f821450e97c44d52855242705", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43a2fa9cf3a6167125e1ebe6be38dcd1033c9e6f821450e97c44d52855242705", kill_on_drop: false }` [INFO] [stdout] 43a2fa9cf3a6167125e1ebe6be38dcd1033c9e6f821450e97c44d52855242705 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e99782c938415b7f94597ac161c02311227b34650736dfe2b80ff2ca1bae1dd3 [INFO] running `Command { std: "docker" "start" "-a" "e99782c938415b7f94597ac161c02311227b34650736dfe2b80ff2ca1bae1dd3", kill_on_drop: false }` [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 3.74s [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 5` [INFO] running `Command { std: "docker" "inspect" "e99782c938415b7f94597ac161c02311227b34650736dfe2b80ff2ca1bae1dd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e99782c938415b7f94597ac161c02311227b34650736dfe2b80ff2ca1bae1dd3", kill_on_drop: false }` [INFO] [stdout] e99782c938415b7f94597ac161c02311227b34650736dfe2b80ff2ca1bae1dd3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fddba4558b30ecf9000e0bd6a0c809ecf183de1732bf08139c6316b78993f93b [INFO] running `Command { std: "docker" "start" "-a" "fddba4558b30ecf9000e0bd6a0c809ecf183de1732bf08139c6316b78993f93b", 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 5` [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::tests::sign ... ok [INFO] [stdout] test algorithm::rust_crypto::tests::verify ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::genric_public_key_parse ... ok [INFO] [stdout] test claims::tests::private_claims ... ok [INFO] [stdout] test claims::tests::registered_claims ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::es256_verify ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::rs256_sign ... ok [INFO] [stdout] test claims::tests::roundtrip ... ok [INFO] [stdout] test header::tests::from_base64 ... ok [INFO] [stdout] test header::tests::precomputed_headers ... ok [INFO] [stdout] test algorithm::rust_crypto::asymmetric::tests::rs256_verify ... ok [INFO] [stdout] test header::tests::roundtrip ... ok [INFO] [stdout] test tests::raw_data ... ok [INFO] [stdout] test 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 algorithm::rust_crypto::asymmetric::tests::genric_private_key_parse ... ok [INFO] [stdout] test token::verified::tests::component_errors ... ok [INFO] [stdout] test token::verified::tests::verify_claims_with_b_tree_map ... ok [INFO] [stdout] test token::verified::tests::verify_claims_with_hash_map ... ok [INFO] [stdout] test token::verified::tests::verify_claims_with_missing_key ... 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.08s [INFO] [stdout] [INFO] [stderr] Doc-tests jwt_next [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/lib.rs - (line 208) ... FAILED [INFO] [stdout] test src/lib.rs - (line 158) ... FAILED [INFO] [stdout] test src/lib.rs - (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... FAILED [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/lib.rs - (line 181) ... 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/algorithm/mod.rs - algorithm (line 6) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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 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 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 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] ---- 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 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] [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.92s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "fddba4558b30ecf9000e0bd6a0c809ecf183de1732bf08139c6316b78993f93b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fddba4558b30ecf9000e0bd6a0c809ecf183de1732bf08139c6316b78993f93b", kill_on_drop: false }` [INFO] [stdout] fddba4558b30ecf9000e0bd6a0c809ecf183de1732bf08139c6316b78993f93b