[INFO] cloning repository https://github.com/xFeuer/auth-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xFeuer/auth-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FxFeuer%2Fauth-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FxFeuer%2Fauth-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ab4b8aedf27614c9f3b4f8f2a50f6900c578a2a [INFO] building xFeuer/auth-api against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FxFeuer%2Fauth-api" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xFeuer/auth-api [INFO] finished tweaking git repo https://github.com/xFeuer/auth-api [INFO] tweaked toml for git repo https://github.com/xFeuer/auth-api written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xFeuer/auth-api on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xFeuer/auth-api 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tempfile v3.20.0 [INFO] [stderr] Downloaded macro_magic_core_macros v0.5.1 [INFO] [stderr] Downloaded slab v0.4.10 [INFO] [stderr] Downloaded macro_magic v0.5.1 [INFO] [stderr] Downloaded tap v1.0.1 [INFO] [stderr] Downloaded deranged v0.4.0 [INFO] [stderr] Downloaded redox_syscall v0.5.13 [INFO] [stderr] Downloaded pem v3.0.5 [INFO] [stderr] Downloaded sha-1 v0.10.1 [INFO] [stderr] Downloaded funty v2.0.0 [INFO] [stderr] Downloaded rustc-demangle v0.1.25 [INFO] [stderr] Downloaded data-encoding v2.9.0 [INFO] [stderr] Downloaded blowfish v0.9.1 [INFO] [stderr] Downloaded bcrypt v0.16.0 [INFO] [stderr] Downloaded inout v0.1.4 [INFO] [stderr] Downloaded oauth2 v4.4.2 [INFO] [stderr] Downloaded widestring v1.2.0 [INFO] [stderr] Downloaded bson v2.15.0 [INFO] [stderr] Downloaded cc v1.2.27 [INFO] [stderr] Downloaded h2 v0.4.10 [INFO] [stderr] Downloaded darling_core v0.20.11 [INFO] [stderr] Downloaded hickory-resolver v0.24.4 [INFO] [stderr] Downloaded syn v2.0.104 [INFO] [stderr] Downloaded time v0.3.41 [INFO] [stderr] Downloaded serde_with v3.13.0 [INFO] [stderr] Downloaded rustix v1.0.7 [INFO] [stderr] Downloaded rustls v0.23.28 [INFO] [stderr] Downloaded hyper-util v0.1.14 [INFO] [stderr] Downloaded reqwest v0.12.20 [INFO] [stderr] Downloaded hashbrown v0.15.4 [INFO] [stderr] Downloaded darling v0.20.11 [INFO] [stderr] Downloaded jsonwebtoken v9.3.1 [INFO] [stderr] Downloaded hickory-proto v0.24.4 [INFO] [stderr] Downloaded bitvec v1.0.1 [INFO] [stderr] Downloaded derive-where v1.5.0 [INFO] [stderr] Downloaded ipconfig v0.3.2 [INFO] [stderr] Downloaded libc v0.2.174 [INFO] [stderr] Downloaded resolv-conf v0.7.4 [INFO] [stderr] Downloaded macro_magic_core v0.5.1 [INFO] [stderr] Downloaded serde_with_macros v3.13.0 [INFO] [stderr] Downloaded typed-builder v0.10.0 [INFO] [stderr] Downloaded base64 v0.13.1 [INFO] [stderr] Downloaded radium v0.7.0 [INFO] [stderr] Downloaded async-trait v0.1.88 [INFO] [stderr] Downloaded enum-as-inner v0.6.1 [INFO] [stderr] Downloaded mongodb-internal-macros v3.2.3 [INFO] [stderr] Downloaded pbkdf2 v0.11.0 [INFO] [stderr] Downloaded time-core v0.1.4 [INFO] [stderr] Downloaded time-macros v0.2.22 [INFO] [stderr] Downloaded simple_asn1 v0.6.3 [INFO] [stderr] Downloaded wyz v0.5.1 [INFO] [stderr] Downloaded derive_more v0.99.20 [INFO] [stderr] Downloaded mongodb v3.2.3 [INFO] [stderr] Downloaded linked-hash-map v0.5.6 [INFO] [stderr] Downloaded derive-syn-parse v0.2.0 [INFO] [stderr] Downloaded darling_macro v0.20.11 [INFO] [stderr] Downloaded macro_magic_macros v0.5.1 [INFO] [stderr] Downloaded rustc_version_runtime v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 405fbd483b83e9f23e4eec580294c2d5cad078219fa802c932e2c461471bdef2 [INFO] running `Command { std: "docker" "start" "-a" "405fbd483b83e9f23e4eec580294c2d5cad078219fa802c932e2c461471bdef2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "405fbd483b83e9f23e4eec580294c2d5cad078219fa802c932e2c461471bdef2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "405fbd483b83e9f23e4eec580294c2d5cad078219fa802c932e2c461471bdef2", kill_on_drop: false }` [INFO] [stdout] 405fbd483b83e9f23e4eec580294c2d5cad078219fa802c932e2c461471bdef2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac05308342c7ceb97ef15934904ffc1c7cc0fe13f7e9bdf96b2d6342cf08d18b [INFO] running `Command { std: "docker" "start" "-a" "ac05308342c7ceb97ef15934904ffc1c7cc0fe13f7e9bdf96b2d6342cf08d18b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling bcrypt v0.16.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling derive-where v1.5.0 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.3 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.13.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [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 idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling serde_bytes v0.11.17 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_with v3.13.0 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling bson v2.15.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling mongodb v3.2.3 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling reqwest v0.12.20 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling oauth2 v4.4.2 [INFO] [stderr] Compiling auth-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/handlers/auth.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | http::{HeaderMap, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/handlers/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/middleware/auth.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | http::{HeaderMap, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/middleware/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `session_secret` and `session_duration_hours` are never read [INFO] [stdout] --> src/config/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub session_secret: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub session_duration_hours: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_id` and `session_id` are never read [INFO] [stdout] --> src/middleware/auth.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AuthenticatedUser { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 17 | pub user_id: ObjectId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | pub session_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthenticatedUser` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_authenticated_user` is never used [INFO] [stdout] --> src/middleware/auth.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_authenticated_user(headers: &HeaderMap) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `invalidate_all_user_sessions` is never used [INFO] [stdout] --> src/models/session.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl Session { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn invalidate_all_user_sessions(db: &Database, user_id: &ObjectId) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 17s [INFO] running `Command { std: "docker" "inspect" "ac05308342c7ceb97ef15934904ffc1c7cc0fe13f7e9bdf96b2d6342cf08d18b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac05308342c7ceb97ef15934904ffc1c7cc0fe13f7e9bdf96b2d6342cf08d18b", kill_on_drop: false }` [INFO] [stdout] ac05308342c7ceb97ef15934904ffc1c7cc0fe13f7e9bdf96b2d6342cf08d18b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a3e7f007fa5060434f89facb579ef8146ce01bffd894a7e9b65d969f5be4946 [INFO] running `Command { std: "docker" "start" "-a" "9a3e7f007fa5060434f89facb579ef8146ce01bffd894a7e9b65d969f5be4946", kill_on_drop: false }` [INFO] [stderr] Compiling auth-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/handlers/auth.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | http::{HeaderMap, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/handlers/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/middleware/auth.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | http::{HeaderMap, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/middleware/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `session_secret` and `session_duration_hours` are never read [INFO] [stdout] --> src/config/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub session_secret: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub session_duration_hours: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_id` and `session_id` are never read [INFO] [stdout] --> src/middleware/auth.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AuthenticatedUser { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 17 | pub user_id: ObjectId, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | pub session_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthenticatedUser` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_authenticated_user` is never used [INFO] [stdout] --> src/middleware/auth.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_authenticated_user(headers: &HeaderMap) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `invalidate_all_user_sessions` is never used [INFO] [stdout] --> src/models/session.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl Session { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn invalidate_all_user_sessions(db: &Database, user_id: &ObjectId) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.35s [INFO] running `Command { std: "docker" "inspect" "9a3e7f007fa5060434f89facb579ef8146ce01bffd894a7e9b65d969f5be4946", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a3e7f007fa5060434f89facb579ef8146ce01bffd894a7e9b65d969f5be4946", kill_on_drop: false }` [INFO] [stdout] 9a3e7f007fa5060434f89facb579ef8146ce01bffd894a7e9b65d969f5be4946