[INFO] fetching crate logto-rs 0.1.0... [INFO] testing logto-rs-0.1.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate logto-rs 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate logto-rs 0.1.0 [INFO] finished tweaking crates.io crate logto-rs 0.1.0 [INFO] tweaked toml for crates.io crate logto-rs 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate logto-rs 0.1.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 217 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding josekit v0.8.7 (available: v0.10.3) [INFO] [stderr] Adding jsonwebtoken v9.3.1 (available: v10.0.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3419c00828674358aff2fd426fb321c6ee3b80471ca007625584d441671228c [INFO] running `Command { std: "docker" "start" "-a" "a3419c00828674358aff2fd426fb321c6ee3b80471ca007625584d441671228c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3419c00828674358aff2fd426fb321c6ee3b80471ca007625584d441671228c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3419c00828674358aff2fd426fb321c6ee3b80471ca007625584d441671228c", kill_on_drop: false }` [INFO] [stdout] a3419c00828674358aff2fd426fb321c6ee3b80471ca007625584d441671228c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10298bbc83d37eef3b90c98a14f5809be546b624565fdcc9216f077ed37802da [INFO] running `Command { std: "docker" "start" "-a" "10298bbc83d37eef3b90c98a14f5809be546b624565fdcc9216f077ed37802da", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling colored v3.0.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling mockito v1.7.0 [INFO] [stderr] Compiling josekit v0.8.7 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling logto-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/sign_in.rs:51:24 [INFO] [stdout] | [INFO] [stdout] 51 | fn with_default_scopes(mut scopes: Option>) -> Vec<&str> { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenByAuthorizationCodeParameters` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct TokenByAuthorizationCodeParameters<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenByRefreshTokenParameters` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct TokenByRefreshTokenParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeTokenResponse` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct CodeTokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefreshTokenTokenResponse` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | struct RefreshTokenTokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_token_by_authorization_code` is never used [INFO] [stdout] --> src/core/fetch_token.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | async fn fetch_token_by_authorization_code<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_token_by_refresh_token` is never used [INFO] [stdout] --> src/core/fetch_token.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | async fn fetch_token_by_refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OidcConfigResponse` is never constructed [INFO] [stdout] --> src/core/oicd_config.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct OidcConfigResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_oidc_config` is never used [INFO] [stdout] --> src/core/oicd_config.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | async fn fetch_oidc_config( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RevocationParams` is never constructed [INFO] [stdout] --> src/core/revoke.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct RevocationParams<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `revoke` is never used [INFO] [stdout] --> src/core/revoke.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | async fn revoke<'a>( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignInUriGenerationOptions` is never constructed [INFO] [stdout] --> src/core/sign_in.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SignInUriGenerationOptions<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReservedScopes` is never used [INFO] [stdout] --> src/core/sign_in.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum ReservedScopes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UserScopes` is never used [INFO] [stdout] --> src/core/sign_in.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | enum UserScopes { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/core/sign_in.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl UserScopes { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 31 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/core/sign_in.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl ReservedScopes { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 43 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_default_scopes` is never used [INFO] [stdout] --> src/core/sign_in.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn with_default_scopes(mut scopes: Option>) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODE_CHALLENGE_METHOD` is never used [INFO] [stdout] --> src/core/sign_in.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | const CODE_CHALLENGE_METHOD: &str = "S256"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RESPONSE_TYPE` is never used [INFO] [stdout] --> src/core/sign_in.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const RESPONSE_TYPE: &str = "code"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_signin_uri` is never used [INFO] [stdout] --> src/core/sign_in.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn generate_signin_uri( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignOutUriGenerationOptions` is never constructed [INFO] [stdout] --> src/core/sign_out.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SignOutUriGenerationOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_signout_uri` is never used [INFO] [stdout] --> src/core/sign_out.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_signout_uri( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdTokenClaims` is never constructed [INFO] [stdout] --> src/utils/decode_id_token.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IdTokenClaims { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_payload` is never used [INFO] [stdout] --> src/utils/decode_id_token.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl IdTokenClaims { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 23 | pub fn to_payload(&self) -> JwtPayload { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_id_token` is never used [INFO] [stdout] --> src/utils/decode_id_token.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn decode_id_token(token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code_verifier` is never used [INFO] [stdout] --> src/utils/generators.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn generate_code_verifier() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code_challenge` is never used [INFO] [stdout] --> src/utils/generators.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn generate_code_challenge(code_verifier: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_state` is never used [INFO] [stdout] --> src/utils/generators.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_state() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_string` is never used [INFO] [stdout] --> src/utils/generators.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn generate_random_string() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnverifiedUris` is never constructed [INFO] [stdout] --> src/utils/verify_and_parse_code_from_callback_uri.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct UnverifiedUris { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_and_parse_code_from_callback_uri` is never used [INFO] [stdout] --> src/utils/verify_and_parse_code_from_callback_uri.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn verify_and_parse_code_from_callback_uri( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenInfoParameters` is never constructed [INFO] [stdout] --> src/utils/verify_id_token.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct TokenInfoParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_id_token` is never used [INFO] [stdout] --> src/utils/verify_id_token.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn verify_id_token(params: TokenInfoParameters) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 59s [INFO] running `Command { std: "docker" "inspect" "10298bbc83d37eef3b90c98a14f5809be546b624565fdcc9216f077ed37802da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10298bbc83d37eef3b90c98a14f5809be546b624565fdcc9216f077ed37802da", kill_on_drop: false }` [INFO] [stdout] 10298bbc83d37eef3b90c98a14f5809be546b624565fdcc9216f077ed37802da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc9034f5f3f24e7cf3421a9d95ec6e473beb106b95b3ef09c68e0d9078732d97 [INFO] running `Command { std: "docker" "start" "-a" "dc9034f5f3f24e7cf3421a9d95ec6e473beb106b95b3ef09c68e0d9078732d97", kill_on_drop: false }` [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/sign_in.rs:51:24 [INFO] [stdout] | [INFO] [stdout] 51 | fn with_default_scopes(mut scopes: Option>) -> Vec<&str> { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenByAuthorizationCodeParameters` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct TokenByAuthorizationCodeParameters<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenByRefreshTokenParameters` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct TokenByRefreshTokenParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeTokenResponse` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct CodeTokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefreshTokenTokenResponse` is never constructed [INFO] [stdout] --> src/core/fetch_token.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | struct RefreshTokenTokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_token_by_authorization_code` is never used [INFO] [stdout] --> src/core/fetch_token.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | async fn fetch_token_by_authorization_code<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_token_by_refresh_token` is never used [INFO] [stdout] --> src/core/fetch_token.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | async fn fetch_token_by_refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OidcConfigResponse` is never constructed [INFO] [stdout] --> src/core/oicd_config.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct OidcConfigResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_oidc_config` is never used [INFO] [stdout] --> src/core/oicd_config.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | async fn fetch_oidc_config( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RevocationParams` is never constructed [INFO] [stdout] --> src/core/revoke.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct RevocationParams<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `revoke` is never used [INFO] [stdout] --> src/core/revoke.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | async fn revoke<'a>( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignInUriGenerationOptions` is never constructed [INFO] [stdout] --> src/core/sign_in.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SignInUriGenerationOptions<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReservedScopes` is never used [INFO] [stdout] --> src/core/sign_in.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum ReservedScopes { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UserScopes` is never used [INFO] [stdout] --> src/core/sign_in.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | enum UserScopes { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/core/sign_in.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl UserScopes { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 31 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/core/sign_in.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl ReservedScopes { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 43 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_default_scopes` is never used [INFO] [stdout] --> src/core/sign_in.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn with_default_scopes(mut scopes: Option>) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODE_CHALLENGE_METHOD` is never used [INFO] [stdout] --> src/core/sign_in.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | const CODE_CHALLENGE_METHOD: &str = "S256"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RESPONSE_TYPE` is never used [INFO] [stdout] --> src/core/sign_in.rs:71:7 [INFO] [stdout] | [INFO] [stdout] 71 | const RESPONSE_TYPE: &str = "code"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_signin_uri` is never used [INFO] [stdout] --> src/core/sign_in.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn generate_signin_uri( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignOutUriGenerationOptions` is never constructed [INFO] [stdout] --> src/core/sign_out.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SignOutUriGenerationOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_signout_uri` is never used [INFO] [stdout] --> src/core/sign_out.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_signout_uri( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdTokenClaims` is never constructed [INFO] [stdout] --> src/utils/decode_id_token.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IdTokenClaims { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_payload` is never used [INFO] [stdout] --> src/utils/decode_id_token.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl IdTokenClaims { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 23 | pub fn to_payload(&self) -> JwtPayload { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_id_token` is never used [INFO] [stdout] --> src/utils/decode_id_token.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn decode_id_token(token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code_verifier` is never used [INFO] [stdout] --> src/utils/generators.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn generate_code_verifier() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling logto-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `generate_code_challenge` is never used [INFO] [stdout] --> src/utils/generators.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn generate_code_challenge(code_verifier: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_state` is never used [INFO] [stdout] --> src/utils/generators.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn generate_state() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_string` is never used [INFO] [stdout] --> src/utils/generators.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn generate_random_string() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnverifiedUris` is never constructed [INFO] [stdout] --> src/utils/verify_and_parse_code_from_callback_uri.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct UnverifiedUris { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_and_parse_code_from_callback_uri` is never used [INFO] [stdout] --> src/utils/verify_and_parse_code_from_callback_uri.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn verify_and_parse_code_from_callback_uri( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenInfoParameters` is never constructed [INFO] [stdout] --> src/utils/verify_id_token.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct TokenInfoParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_id_token` is never used [INFO] [stdout] --> src/utils/verify_id_token.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn verify_id_token(params: TokenInfoParameters) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/fetch_token.rs:109:14 [INFO] [stdout] | [INFO] [stdout] 109 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/fetch_token.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/oicd_config.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/revoke.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/sign_in.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/sign_in.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/sign_in.rs:203:14 [INFO] [stdout] | [INFO] [stdout] 203 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/sign_out.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `test` in `tokio` [INFO] [stdout] --> src/core/sign_out.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | #[tokio::test] [INFO] [stdout] | ^^^^ could not find `test` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/sign_in.rs:51:24 [INFO] [stdout] | [INFO] [stdout] 51 | fn with_default_scopes(mut scopes: Option>) -> Vec<&str> { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `logto-rs` (lib test) due to 9 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "dc9034f5f3f24e7cf3421a9d95ec6e473beb106b95b3ef09c68e0d9078732d97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc9034f5f3f24e7cf3421a9d95ec6e473beb106b95b3ef09c68e0d9078732d97", kill_on_drop: false }` [INFO] [stdout] dc9034f5f3f24e7cf3421a9d95ec6e473beb106b95b3ef09c68e0d9078732d97