[INFO] cloning repository https://github.com/apathyjade/axum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/apathyjade/axum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapathyjade%2Faxum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapathyjade%2Faxum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 692df5d8177a05071ada6f1e212baf5eb3389c0a [INFO] testing apathyjade/axum against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapathyjade%2Faxum" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/apathyjade/axum [INFO] finished tweaking git repo https://github.com/apathyjade/axum [INFO] tweaked toml for git repo https://github.com/apathyjade/axum written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/apathyjade/axum on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/apathyjade/axum 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 872f720a99d1cf0c2df1dc3b713154520ada6174d80ffb1be40c549e7282dfd3 [INFO] running `Command { std: "docker" "start" "-a" "872f720a99d1cf0c2df1dc3b713154520ada6174d80ffb1be40c549e7282dfd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "872f720a99d1cf0c2df1dc3b713154520ada6174d80ffb1be40c549e7282dfd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "872f720a99d1cf0c2df1dc3b713154520ada6174d80ffb1be40c549e7282dfd3", kill_on_drop: false }` [INFO] [stdout] 872f720a99d1cf0c2df1dc3b713154520ada6174d80ffb1be40c549e7282dfd3 [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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb4fe4a1263fc1348b33324ab099c403ea65daa70cd1e9e2f640726d51324702 [INFO] running `Command { std: "docker" "start" "-a" "fb4fe4a1263fc1348b33324ab099c403ea65daa70cd1e9e2f640726d51324702", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling cc v1.2.38 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling webpki-roots v1.0.3 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling diesel_derives v2.3.3 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling pq-sys v0.7.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling downcast-rs v2.0.2 [INFO] [stderr] Compiling backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [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 tokio-macros v2.5.0 [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 darling_macro v0.20.11 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling dsl_auto_type v0.2.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling validator v0.20.0 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling diesel v2.3.2 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling oauth2 v5.0.0 [INFO] [stdout] warning: unused imports: `ConnectInfo`, `State`, and `post` [INFO] [stdout] --> src/router/auth.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{ConnectInfo, Query, State}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/router/auth.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/router/auth.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{collections::HashMap, env, fmt::{format, Debug}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/router/auth.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/router/auth.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> src/router/auth.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::interval` [INFO] [stdout] --> src/router/auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::time::interval; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AuthorizationCode` [INFO] [stdout] --> src/router/auth.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | AuthUrl, AuthorizationCode, ClientId, ClientSecret, CsrfToken, RedirectUrl, Scope, TokenResponse, TokenUrl [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils` [INFO] [stdout] --> src/router/auth.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::{model::api_response::ApiResponse, utils, AppStateArc}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenResponse` [INFO] [stdout] --> src/router/auth.rs:19:88 [INFO] [stdout] | [INFO] [stdout] 19 | AuthUrl, AuthorizationCode, ClientId, ClientSecret, CsrfToken, RedirectUrl, Scope, TokenResponse, TokenUrl [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/router/auth.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthState` is never constructed [INFO] [stdout] --> src/router/auth.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct AuthState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/router/auth.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct AuthCallbackParams { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 50 | code: String, [INFO] [stdout] 51 | state: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthCallbackParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GithubClient` is never used [INFO] [stdout] --> src/utils/auth2.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type GithubClient = Client< [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_github_auth_client` is never used [INFO] [stdout] --> src/utils/auth2.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_github_auth_client() -> GithubClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 29s [INFO] running `Command { std: "docker" "inspect" "fb4fe4a1263fc1348b33324ab099c403ea65daa70cd1e9e2f640726d51324702", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb4fe4a1263fc1348b33324ab099c403ea65daa70cd1e9e2f640726d51324702", kill_on_drop: false }` [INFO] [stdout] fb4fe4a1263fc1348b33324ab099c403ea65daa70cd1e9e2f640726d51324702 [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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a03c9754e96f44581a67e1e23cce64cf09834740dc51f60a53f0e0b5d5285ed3 [INFO] running `Command { std: "docker" "start" "-a" "a03c9754e96f44581a67e1e23cce64cf09834740dc51f60a53f0e0b5d5285ed3", kill_on_drop: false }` [INFO] [stderr] Compiling backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ConnectInfo`, `State`, and `post` [INFO] [stdout] --> src/router/auth.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{ConnectInfo, Query, State}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/router/auth.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/router/auth.rs:10:44 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{collections::HashMap, env, fmt::{format, Debug}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/router/auth.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/router/auth.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> src/router/auth.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::interval` [INFO] [stdout] --> src/router/auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::time::interval; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AuthorizationCode` [INFO] [stdout] --> src/router/auth.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | AuthUrl, AuthorizationCode, ClientId, ClientSecret, CsrfToken, RedirectUrl, Scope, TokenResponse, TokenUrl [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils` [INFO] [stdout] --> src/router/auth.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::{model::api_response::ApiResponse, utils, AppStateArc}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenResponse` [INFO] [stdout] --> src/router/auth.rs:19:88 [INFO] [stdout] | [INFO] [stdout] 19 | AuthUrl, AuthorizationCode, ClientId, ClientSecret, CsrfToken, RedirectUrl, Scope, TokenResponse, TokenUrl [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/router/auth.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthState` is never constructed [INFO] [stdout] --> src/router/auth.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct AuthState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/router/auth.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct AuthCallbackParams { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 50 | code: String, [INFO] [stdout] 51 | state: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthCallbackParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `GithubClient` is never used [INFO] [stdout] --> src/utils/auth2.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type GithubClient = Client< [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_github_auth_client` is never used [INFO] [stdout] --> src/utils/auth2.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_github_auth_client() -> GithubClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.58s [INFO] running `Command { std: "docker" "inspect" "a03c9754e96f44581a67e1e23cce64cf09834740dc51f60a53f0e0b5d5285ed3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a03c9754e96f44581a67e1e23cce64cf09834740dc51f60a53f0e0b5d5285ed3", kill_on_drop: false }` [INFO] [stdout] a03c9754e96f44581a67e1e23cce64cf09834740dc51f60a53f0e0b5d5285ed3 [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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ce705d834616ef66ab8deb2ed89322340e49d164486ba31cb6136c7332f823c2 [INFO] running `Command { std: "docker" "start" "-a" "ce705d834616ef66ab8deb2ed89322340e49d164486ba31cb6136c7332f823c2", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `ConnectInfo`, `State`, and `post` [INFO] [stderr] --> src/router/auth.rs:2:15 [INFO] [stderr] | [INFO] [stderr] 2 | extract::{ConnectInfo, Query, State}, [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 5 | routing::{get, post}, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/router/auth.rs:9:26 [INFO] [stderr] | [INFO] [stderr] 9 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `format` [INFO] [stderr] --> src/router/auth.rs:10:44 [INFO] [stderr] | [INFO] [stderr] 10 | use std::{collections::HashMap, env, fmt::{format, Debug}}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/router/auth.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/router/auth.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::RwLock` [INFO] [stderr] --> src/router/auth.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use tokio::sync::RwLock; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::time::interval` [INFO] [stderr] --> src/router/auth.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use tokio::time::interval; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `AuthorizationCode` [INFO] [stderr] --> src/router/auth.rs:19:14 [INFO] [stderr] | [INFO] [stderr] 19 | AuthUrl, AuthorizationCode, ClientId, ClientSecret, CsrfToken, RedirectUrl, Scope, TokenResponse, TokenUrl [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils` [INFO] [stderr] --> src/router/auth.rs:24:47 [INFO] [stderr] | [INFO] [stderr] 24 | use crate::{model::api_response::ApiResponse, utils, AppStateArc}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TokenResponse` [INFO] [stderr] --> src/router/auth.rs:19:88 [INFO] [stderr] | [INFO] [stderr] 19 | AuthUrl, AuthorizationCode, ClientId, ClientSecret, CsrfToken, RedirectUrl, Scope, TokenResponse, TokenUrl [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Session` is never constructed [INFO] [stderr] --> src/router/auth.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct Session { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `AuthState` is never constructed [INFO] [stderr] --> src/router/auth.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub struct AuthState { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `state` is never read [INFO] [stderr] --> src/router/auth.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 49 | pub struct AuthCallbackParams { [INFO] [stderr] | ------------------ field in this struct [INFO] [stderr] 50 | code: String, [INFO] [stderr] 51 | state: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AuthCallbackParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: type alias `GithubClient` is never used [INFO] [stderr] --> src/utils/auth2.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | pub type GithubClient = Client< [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_github_auth_client` is never used [INFO] [stderr] --> src/utils/auth2.rs:28:8 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn get_github_auth_client() -> GithubClient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `backend` (bin "backend" test) generated 15 warnings (run `cargo fix --bin "backend" --tests` to apply 9 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/backend-e19c085759ec2269) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ce705d834616ef66ab8deb2ed89322340e49d164486ba31cb6136c7332f823c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce705d834616ef66ab8deb2ed89322340e49d164486ba31cb6136c7332f823c2", kill_on_drop: false }` [INFO] [stdout] ce705d834616ef66ab8deb2ed89322340e49d164486ba31cb6136c7332f823c2