[INFO] cloning repository https://github.com/nam3yejin0/BarterUp-be [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nam3yejin0/BarterUp-be" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnam3yejin0%2FBarterUp-be", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnam3yejin0%2FBarterUp-be'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b65b05cf81a2036dfe5574b3363e4103ea2134e [INFO] building nam3yejin0/BarterUp-be against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnam3yejin0%2FBarterUp-be" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nam3yejin0/BarterUp-be [INFO] finished tweaking git repo https://github.com/nam3yejin0/BarterUp-be [INFO] tweaked toml for git repo https://github.com/nam3yejin0/BarterUp-be written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nam3yejin0/BarterUp-be 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/nam3yejin0/BarterUp-be 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] Downloading crates ... [INFO] [stderr] Downloaded deadpool-postgres v0.10.5 [INFO] [stderr] Downloaded thiserror-impl v2.0.14 [INFO] [stderr] Downloaded thiserror v2.0.14 [INFO] [stderr] Downloaded actix-cors v0.7.1 [INFO] [stderr] Downloaded simple_asn1 v0.6.3 [INFO] [stderr] Downloaded tokio-postgres v0.7.13 [INFO] [stderr] Downloaded uuid v1.18.0 [INFO] [stderr] Downloaded cc v1.2.32 [INFO] [stderr] Downloaded postgres-types v0.2.9 [INFO] [stderr] Downloaded whoami v1.6.1 [INFO] [stderr] Downloaded serde_json v1.0.142 [INFO] [stderr] Downloaded postgres-protocol v0.6.8 [INFO] [stderr] Downloaded webpki-roots v1.0.2 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81bc945d8c5243e9e7055fb517fffa21ba16c4d8df84c0c85ce236e5eb0f5942 [INFO] running `Command { std: "docker" "start" "-a" "81bc945d8c5243e9e7055fb517fffa21ba16c4d8df84c0c85ce236e5eb0f5942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81bc945d8c5243e9e7055fb517fffa21ba16c4d8df84c0c85ce236e5eb0f5942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81bc945d8c5243e9e7055fb517fffa21ba16c4d8df84c0c85ce236e5eb0f5942", kill_on_drop: false }` [INFO] [stdout] 81bc945d8c5243e9e7055fb517fffa21ba16c4d8df84c0c85ce236e5eb0f5942 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfdffd650fb4dcbb5ea13ccc62f7aacf8ebb299f98ec0cd829aa3a2f98f2dee4 [INFO] running `Command { std: "docker" "start" "-a" "bfdffd650fb4dcbb5ea13ccc62f7aacf8ebb299f98ec0cd829aa3a2f98f2dee4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling thiserror v2.0.14 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling brotli v8.0.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling zerovec v0.11.4 [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 actix-router v0.5.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [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 h2 v0.4.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling postgres-protocol v0.6.8 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling thiserror-impl v2.0.14 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling postgres-types v0.2.9 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling retain_mut v0.1.9 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling actix-http v3.11.0 [INFO] [stderr] Compiling deadpool v0.9.5 [INFO] [stderr] Compiling tokio-postgres v0.7.13 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling deadpool-postgres v0.10.5 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling actix-cors v0.7.1 [INFO] [stderr] Compiling barterup-be v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/dtos/profile_picture_dtos.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [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: `chrono::NaiveDate` [INFO] [stdout] --> src/services/auth_services.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::NaiveDate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Algorithm`, `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/services/auth_services.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use jsonwebtoken::{decode, Algorithm, DecodingKey, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::personal::NewPersonal` [INFO] [stdout] --> src/handlers/auth_handlers.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::models::personal::NewPersonal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/profile_picture_handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NewPersonal` [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::personal::{NewPersonal, Personal}; // sesuaikan path [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/models/user.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{NaiveDateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignupResponse` is never constructed [INFO] [stdout] --> src/dtos/auth_dtos.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct SignupResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProfileCompleteResponse` is never constructed [INFO] [stdout] --> src/dtos/auth_dtos.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ProfileCompleteResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidToken`, `UserNotFound`, `ProfileNotFound`, and `Other` are never constructed [INFO] [stdout] --> src/services/auth_services.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | InvalidToken, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | UserNotFound, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 25 | #[error("profile not found")] [INFO] [stdout] 26 | ProfileNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | #[error("other: {0}")] [INFO] [stdout] 28 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_user_profile_with_picture`, `login_sb`, and `is_role_user` are never used [INFO] [stdout] --> src/services/auth_services.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 39 | impl AuthService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub async fn get_user_profile_with_picture( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn login_sb(&self, input: LoginIn) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | pub async fn is_role_user(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RepoError` is never used [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum RepoError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProfileSupabaseRepo` is never constructed [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ProfileSupabaseRepo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl ProfileSupabaseRepo { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 36 | /// create from env vars (helper). Panik kalau service role key tidak ada. [INFO] [stdout] 37 | pub fn new_from_env() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn profiles_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn headers(&self) -> reqwest::header::HeaderMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn upsert_profile( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn get_by_user_id(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub async fn get_role_by_user_id(&self, user_id: Uuid) -> Result, RepoError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub async fn delete_by_user_id(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bio` is never read [INFO] [stdout] --> src/repositories/post_repository.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ProfileData { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub bio: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProfileData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_user_posts_with_profile` is never used [INFO] [stdout] --> src/repositories/post_repository.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 31 | impl PostRepository { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub async fn get_user_posts_with_profile( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Personal` is never constructed [INFO] [stdout] --> src/models/personal.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Personal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewPersonal` is never constructed [INFO] [stdout] --> src/models/personal.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct NewPersonal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate`, `age_years`, and `update_profile_picture` are never used [INFO] [stdout] --> src/models/personal.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Personal { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 44 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn age_years(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn update_profile_picture(&mut self, picture_url: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate` is never used [INFO] [stdout] --> src/models/personal.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl NewPersonal { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 96 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_skill` is never used [INFO] [stdout] --> src/models/personal.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn is_valid_skill(skill: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/models/user.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewUser` is never constructed [INFO] [stdout] --> src/models/user.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct NewUser { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserPublic` is never constructed [INFO] [stdout] --> src/models/user.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct UserPublic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JwtClaims` is never constructed [INFO] [stdout] --> src/models/user.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct JwtClaims { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Post` is never constructed [INFO] [stdout] --> src/models/post.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Post { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 01s [INFO] running `Command { std: "docker" "inspect" "bfdffd650fb4dcbb5ea13ccc62f7aacf8ebb299f98ec0cd829aa3a2f98f2dee4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfdffd650fb4dcbb5ea13ccc62f7aacf8ebb299f98ec0cd829aa3a2f98f2dee4", kill_on_drop: false }` [INFO] [stdout] bfdffd650fb4dcbb5ea13ccc62f7aacf8ebb299f98ec0cd829aa3a2f98f2dee4 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51368da2830cd0127d6cbd841f19a12b4c9152269149ae599e2e22f195130219 [INFO] running `Command { std: "docker" "start" "-a" "51368da2830cd0127d6cbd841f19a12b4c9152269149ae599e2e22f195130219", kill_on_drop: false }` [INFO] [stderr] Compiling barterup-be v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/dtos/profile_picture_dtos.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [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: `chrono::NaiveDate` [INFO] [stdout] --> src/services/auth_services.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::NaiveDate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Algorithm`, `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/services/auth_services.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use jsonwebtoken::{decode, Algorithm, DecodingKey, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::personal::NewPersonal` [INFO] [stdout] --> src/handlers/auth_handlers.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::models::personal::NewPersonal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/profile_picture_handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NewPersonal` [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::personal::{NewPersonal, Personal}; // sesuaikan path [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/models/user.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{NaiveDateTime, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignupResponse` is never constructed [INFO] [stdout] --> src/dtos/auth_dtos.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct SignupResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProfileCompleteResponse` is never constructed [INFO] [stdout] --> src/dtos/auth_dtos.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ProfileCompleteResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidToken`, `UserNotFound`, `ProfileNotFound`, and `Other` are never constructed [INFO] [stdout] --> src/services/auth_services.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | InvalidToken, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | UserNotFound, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 25 | #[error("profile not found")] [INFO] [stdout] 26 | ProfileNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | #[error("other: {0}")] [INFO] [stdout] 28 | Other(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_user_profile_with_picture`, `login_sb`, and `is_role_user` are never used [INFO] [stdout] --> src/services/auth_services.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 39 | impl AuthService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub async fn get_user_profile_with_picture( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn login_sb(&self, input: LoginIn) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | pub async fn is_role_user(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RepoError` is never used [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum RepoError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProfileSupabaseRepo` is never constructed [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ProfileSupabaseRepo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/repositories/profile_supabase_repo.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl ProfileSupabaseRepo { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 36 | /// create from env vars (helper). Panik kalau service role key tidak ada. [INFO] [stdout] 37 | pub fn new_from_env() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn profiles_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn headers(&self) -> reqwest::header::HeaderMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn upsert_profile( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn get_by_user_id(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub async fn get_role_by_user_id(&self, user_id: Uuid) -> Result, RepoError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub async fn delete_by_user_id(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bio` is never read [INFO] [stdout] --> src/repositories/post_repository.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct ProfileData { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub bio: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProfileData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_user_posts_with_profile` is never used [INFO] [stdout] --> src/repositories/post_repository.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 31 | impl PostRepository { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 146 | pub async fn get_user_posts_with_profile( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Personal` is never constructed [INFO] [stdout] --> src/models/personal.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Personal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewPersonal` is never constructed [INFO] [stdout] --> src/models/personal.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct NewPersonal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate`, `age_years`, and `update_profile_picture` are never used [INFO] [stdout] --> src/models/personal.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Personal { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 44 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn age_years(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn update_profile_picture(&mut self, picture_url: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate` is never used [INFO] [stdout] --> src/models/personal.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl NewPersonal { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 96 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_skill` is never used [INFO] [stdout] --> src/models/personal.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn is_valid_skill(skill: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/models/user.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewUser` is never constructed [INFO] [stdout] --> src/models/user.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct NewUser { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserPublic` is never constructed [INFO] [stdout] --> src/models/user.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct UserPublic { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JwtClaims` is never constructed [INFO] [stdout] --> src/models/user.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct JwtClaims { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Post` is never constructed [INFO] [stdout] --> src/models/post.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Post { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.74s [INFO] running `Command { std: "docker" "inspect" "51368da2830cd0127d6cbd841f19a12b4c9152269149ae599e2e22f195130219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51368da2830cd0127d6cbd841f19a12b4c9152269149ae599e2e22f195130219", kill_on_drop: false }` [INFO] [stdout] 51368da2830cd0127d6cbd841f19a12b4c9152269149ae599e2e22f195130219