[INFO] fetching crate jwt-simple-no-nbf-fork 0.12.9... [INFO] checking jwt-simple-no-nbf-fork-0.12.9 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate jwt-simple-no-nbf-fork 0.12.9 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate jwt-simple-no-nbf-fork 0.12.9 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate jwt-simple-no-nbf-fork 0.12.9 [INFO] finished tweaking crates.io crate jwt-simple-no-nbf-fork 0.12.9 [INFO] tweaked toml for crates.io crate jwt-simple-no-nbf-fork 0.12.9 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 135 packages to latest compatible versions [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded benchmark-simple v0.1.9 [INFO] [stderr] Downloaded precision v0.1.17 [INFO] [stderr] Downloaded superboring v0.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7bcf28e3f58c8e91f6ff0242b6cb8b2a10ad1222f0caa86fc832f3e1b3feb8da [INFO] running `Command { std: "docker" "start" "-a" "7bcf28e3f58c8e91f6ff0242b6cb8b2a10ad1222f0caa86fc832f3e1b3feb8da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7bcf28e3f58c8e91f6ff0242b6cb8b2a10ad1222f0caa86fc832f3e1b3feb8da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bcf28e3f58c8e91f6ff0242b6cb8b2a10ad1222f0caa86fc832f3e1b3feb8da", kill_on_drop: false }` [INFO] [stdout] 7bcf28e3f58c8e91f6ff0242b6cb8b2a10ad1222f0caa86fc832f3e1b3feb8da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc273fc3ff0f9ead08d219bfde10e733a2d9cce7b089b403edb470653fa739d5 [INFO] running `Command { std: "docker" "start" "-a" "dc273fc3ff0f9ead08d219bfde10e733a2d9cce7b089b403edb470653fa739d5", kill_on_drop: false }` [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling bindgen v0.70.1 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling fslock v0.2.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Checking foreign-types-shared v0.3.1 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking ct-codecs v1.1.2 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Checking blake2b_simd v1.0.2 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking ff v0.13.0 [INFO] [stderr] Checking ed25519-compact v2.1.1 [INFO] [stderr] Checking coarsetime v0.1.34 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Checking binstring v0.1.1 [INFO] [stderr] Checking hmac-sha1-compact v1.1.4 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling precision v0.1.17 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking benchmark-simple v0.1.9 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac-sha256 v1.1.7 [INFO] [stderr] Checking hmac-sha512 v1.1.5 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking p384 v0.13.0 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling foreign-types-macros v0.2.3 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking foreign-types v0.5.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Compiling boring-sys v4.10.3 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking boring v4.10.3 [INFO] [stderr] Checking jwt-simple-no-nbf-fork v0.12.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `UnixTimeStamp` [INFO] [stdout] --> src/claims.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use coarsetime::{Clock, Duration, UnixTimeStamp}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Base64UrlSafeNoPadding` and `Encoder` [INFO] [stdout] --> src/claims.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use ct_codecs::{Base64UrlSafeNoPadding, Encoder}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::RngCore` [INFO] [stdout] --> src/claims.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::RngCore; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::VerificationOptions` [INFO] [stdout] --> src/claims.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::common::VerificationOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde_additions` [INFO] [stdout] --> src/claims.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::serde_additions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/error.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub use anyhow::{anyhow, bail, ensure, Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnixTimeStamp` [INFO] [stdout] --> src/claims.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use coarsetime::{Clock, Duration, UnixTimeStamp}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Base64UrlSafeNoPadding` and `Encoder` [INFO] [stdout] --> src/claims.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use ct_codecs::{Base64UrlSafeNoPadding, Encoder}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::RngCore` [INFO] [stdout] --> src/claims.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::RngCore; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::VerificationOptions` [INFO] [stdout] --> src/claims.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::common::VerificationOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde_additions` [INFO] [stdout] --> src/claims.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::serde_additions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/error.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub use anyhow::{anyhow, bail, ensure, Error}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_issuer` found for struct `claims::JWTClaims` in the current scope [INFO] [stdout] --> src/token.rs:201:10 [INFO] [stdout] | [INFO] [stdout] 200 | let mut claims = Claims::create(Duration::from_mins(10)) [INFO] [stdout] | ______________________- [INFO] [stdout] 201 | | .with_issuer(issuer) [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `JWTClaims` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/claims.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct JWTClaims { [INFO] [stdout] | ---------------------------------- method `with_issuer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_audiences` found for struct `claims::JWTClaims` in the current scope [INFO] [stdout] --> src/token.rs:228:58 [INFO] [stdout] | [INFO] [stdout] 228 | let claims = Claims::create(Duration::from_mins(10)).with_audiences(audiences); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `JWTClaims` [INFO] [stdout] | [INFO] [stdout] ::: src/claims.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct JWTClaims { [INFO] [stdout] | ---------------------------------- method `with_audiences` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_audiences` found for struct `claims::JWTClaims` in the current scope [INFO] [stdout] --> src/token.rs:248:58 [INFO] [stdout] | [INFO] [stdout] 248 | let claims = Claims::create(Duration::from_mins(10)).with_audiences(audiences); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `JWTClaims` [INFO] [stdout] | [INFO] [stdout] ::: src/claims.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct JWTClaims { [INFO] [stdout] | ---------------------------------- method `with_audiences` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `audiences` on type `claims::JWTClaims` [INFO] [stdout] --> src/token.rs:251:21 [INFO] [stdout] | [INFO] [stdout] 251 | assert!(decoded.audiences.is_some()); [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available field is: `custom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_audience` found for struct `claims::JWTClaims` in the current scope [INFO] [stdout] --> src/token.rs:253:58 [INFO] [stdout] | [INFO] [stdout] 253 | let claims = Claims::create(Duration::from_mins(10)).with_audience(""); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `JWTClaims` [INFO] [stdout] | [INFO] [stdout] ::: src/claims.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct JWTClaims { [INFO] [stdout] | ---------------------------------- method `with_audience` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `audiences` on type `claims::JWTClaims` [INFO] [stdout] --> src/token.rs:256:21 [INFO] [stdout] | [INFO] [stdout] 256 | assert!(decoded.audiences.is_some()); [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available field is: `custom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `audiences` on type `claims::JWTClaims` [INFO] [stdout] --> src/token.rs:261:21 [INFO] [stdout] | [INFO] [stdout] 261 | assert!(decoded.audiences.is_none()); [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available field is: `custom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_issuer` found for struct `claims::JWTClaims` in the current scope [INFO] [stdout] --> src/lib.rs:416:65 [INFO] [stdout] | [INFO] [stdout] 416 | let claims = Claims::create(Duration::from_secs(86400)).with_issuer("test issuer"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `JWTClaims` [INFO] [stdout] | [INFO] [stdout] ::: src/claims.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct JWTClaims { [INFO] [stdout] | ---------------------------------- method `with_issuer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_issuer` found for struct `claims::JWTClaims` in the current scope [INFO] [stdout] --> src/lib.rs:430:65 [INFO] [stdout] | [INFO] [stdout] 430 | let claims = Claims::create(Duration::from_secs(86400)).with_issuer("test issuer"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `JWTClaims` [INFO] [stdout] | [INFO] [stdout] ::: src/claims.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct JWTClaims { [INFO] [stdout] | ---------------------------------- method `with_issuer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:509:22 [INFO] [stdout] | [INFO] [stdout] 509 | let claims = Claims::with_custom_claims(custom_claims, Duration::from_secs(86400)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------------------- unexpected argument #2 of type `coarsetime::Duration` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/claims.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn with_custom_claims( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 130 | custom_claims: CustomClaims, [INFO] [stdout] | --------------------------- [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 509 - let claims = Claims::with_custom_claims(custom_claims, Duration::from_secs(86400)); [INFO] [stdout] 509 + let claims = Claims::with_custom_claims(custom_claims); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_nonce` found for struct `claims::JWTClaims` in the current scope [INFO] [stdout] --> src/lib.rs:534:28 [INFO] [stdout] | [INFO] [stdout] 534 | let nonce = claims.create_nonce(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `JWTClaims` [INFO] [stdout] | [INFO] [stdout] ::: src/claims.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | pub struct JWTClaims { [INFO] [stdout] | ---------------------------------- method `create_nonce` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/claims.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let now = Some(Clock::now_since_epoch()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valid_for` [INFO] [stdout] --> src/claims.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn create(valid_for: Duration) -> JWTClaims { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valid_for` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimestampVisitor` is never constructed [INFO] [stdout] --> src/serde_additions.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | struct TimestampVisitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/serde_additions.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn serialize( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize` is never used [INFO] [stdout] --> src/serde_additions.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn deserialize<'de, D: Deserializer<'de>>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AudiencesVisitor` is never constructed [INFO] [stdout] --> src/serde_additions.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | struct AudiencesVisitor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/serde_additions.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn serialize( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize` is never used [INFO] [stdout] --> src/serde_additions.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn deserialize<'de, D: Deserializer<'de>>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now` [INFO] [stdout] --> src/claims.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let now = Some(Clock::now_since_epoch()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_now` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valid_for` [INFO] [stdout] --> src/claims.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn create(valid_for: Duration) -> JWTClaims { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valid_for` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jwt_simple` [INFO] [stdout] --> benches/benchmark.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use jwt_simple::prelude::*; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `jwt_simple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RS256KeyPair` [INFO] [stdout] --> benches/benchmark.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | let kp = RS256KeyPair::generate(2048).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `RS256KeyPair` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use jwt_simple_no_nbf_fork::prelude::RS256KeyPair; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Claims` [INFO] [stdout] --> benches/benchmark.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | let claims = Claims::create(Duration::from_hours(2)); [INFO] [stdout] | ^^^^^^ use of undeclared type `Claims` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use jwt_simple_no_nbf_fork::prelude::Claims; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> benches/benchmark.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | let claims = Claims::create(Duration::from_hours(2)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 + use coarsetime::Duration; [INFO] [stdout] | [INFO] [stdout] 1 + use jwt_simple_no_nbf_fork::prelude::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoCustomClaims` in this scope [INFO] [stdout] --> benches/benchmark.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | pk.verify_token::(&token, Default::default()) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use jwt_simple_no_nbf_fork::prelude::NoCustomClaims; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `jwt-simple-no-nbf-fork` (bench "benchmark") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 11 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `jwt-simple-no-nbf-fork` (lib test) due to 12 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "dc273fc3ff0f9ead08d219bfde10e733a2d9cce7b089b403edb470653fa739d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc273fc3ff0f9ead08d219bfde10e733a2d9cce7b089b403edb470653fa739d5", kill_on_drop: false }` [INFO] [stdout] dc273fc3ff0f9ead08d219bfde10e733a2d9cce7b089b403edb470653fa739d5