[INFO] cloning repository https://github.com/hellomephllw/rust-web-sample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hellomephllw/rust-web-sample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhellomephllw%2Frust-web-sample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhellomephllw%2Frust-web-sample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7346919cb4760dfb8730b76dbddf09e8dd6cf384 [INFO] building hellomephllw/rust-web-sample against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhellomephllw%2Frust-web-sample" "/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/hellomephllw/rust-web-sample [INFO] finished tweaking git repo https://github.com/hellomephllw/rust-web-sample [INFO] tweaked toml for git repo https://github.com/hellomephllw/rust-web-sample written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hellomephllw/rust-web-sample 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/hellomephllw/rust-web-sample 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] warning: unused manifest key: build [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap_derive v4.5.45 [INFO] [stderr] Downloaded clap v4.5.45 [INFO] [stderr] Downloaded r2d2 v0.8.10 [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.7 [INFO] [stderr] Downloaded diesel_derives v2.2.5 [INFO] [stderr] Downloaded clap_builder v4.5.44 [INFO] [stderr] Downloaded diesel v2.2.10 [INFO] [stderr] Downloaded brotli v8.0.0 [INFO] [stderr] Downloaded mysqlclient-sys v0.4.5 [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] b7df0393c73e9b36814f370dfabd3d2ca1ca8f03fec9389d741b7b628cc9297a [INFO] running `Command { std: "docker" "start" "-a" "b7df0393c73e9b36814f370dfabd3d2ca1ca8f03fec9389d741b7b628cc9297a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7df0393c73e9b36814f370dfabd3d2ca1ca8f03fec9389d741b7b628cc9297a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7df0393c73e9b36814f370dfabd3d2ca1ca8f03fec9389d741b7b628cc9297a", kill_on_drop: false }` [INFO] [stdout] b7df0393c73e9b36814f370dfabd3d2ca1ca8f03fec9389d741b7b628cc9297a [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] 215729a8a6d2347f441da1a35e4bb0e4234fbb7686b35bb36dc54e6b3d679261 [INFO] running `Command { std: "docker" "start" "-a" "215729a8a6d2347f441da1a35e4bb0e4234fbb7686b35bb36dc54e6b3d679261", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling cc v1.2.33 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling brotli-decompressor v5.0.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling mysqlclient-sys v0.4.5 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling hdrhistogram v7.5.4 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling brotli v8.0.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [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 tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling dsl_auto_type v0.1.3 [INFO] [stderr] Compiling diesel_derives v2.2.5 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [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 idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling async-compression v0.4.23 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling diesel v2.2.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling rust-web-sample v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `SUCCESS_CODE` is never used [INFO] [stdout] --> src/constants/error_code_const.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const SUCCESS_CODE: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Biz` is never constructed [INFO] [stdout] --> src/enums/errors/common_error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum CommonError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Biz(BusinessError), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommonError` 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 functions `new` and `custom` are never used [INFO] [stdout] --> src/errors/business_error.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BusinessError { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 14 | pub fn new(code: i32, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn custom(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INVALID_USERNAME_OR_PASSWORD_CODE` is never used [INFO] [stdout] --> src/errors/error_types.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const INVALID_USERNAME_OR_PASSWORD_CODE: i32 = 10001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN_EXPIRED_CODE` is never used [INFO] [stdout] --> src/errors/error_types.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const TOKEN_EXPIRED_CODE: i32 = 10002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invalid_username_or_password` is never used [INFO] [stdout] --> src/errors/error_types.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn invalid_username_or_password() -> BusinessError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_expired` is never used [INFO] [stdout] --> src/errors/error_types.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn token_expired() -> BusinessError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `success` and `failed_with_data` are never used [INFO] [stdout] --> src/models/responses/response.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ApiResponse { [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn success(data: Option) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn failed_with_data(code: i32, data: Option, message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "215729a8a6d2347f441da1a35e4bb0e4234fbb7686b35bb36dc54e6b3d679261", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "215729a8a6d2347f441da1a35e4bb0e4234fbb7686b35bb36dc54e6b3d679261", kill_on_drop: false }` [INFO] [stdout] 215729a8a6d2347f441da1a35e4bb0e4234fbb7686b35bb36dc54e6b3d679261 [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] 8a231b7272dbbaccaf676e5120c97f8229c6b7bf0717a973ceeeb1a1f5896a58 [INFO] running `Command { std: "docker" "start" "-a" "8a231b7272dbbaccaf676e5120c97f8229c6b7bf0717a973ceeeb1a1f5896a58", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] Compiling rust-web-sample v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `SUCCESS_CODE` is never used [INFO] [stdout] --> src/constants/error_code_const.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const SUCCESS_CODE: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Biz` is never constructed [INFO] [stdout] --> src/enums/errors/common_error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum CommonError { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Biz(BusinessError), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommonError` 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 functions `new` and `custom` are never used [INFO] [stdout] --> src/errors/business_error.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BusinessError { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 14 | pub fn new(code: i32, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn custom(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INVALID_USERNAME_OR_PASSWORD_CODE` is never used [INFO] [stdout] --> src/errors/error_types.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const INVALID_USERNAME_OR_PASSWORD_CODE: i32 = 10001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN_EXPIRED_CODE` is never used [INFO] [stdout] --> src/errors/error_types.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const TOKEN_EXPIRED_CODE: i32 = 10002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invalid_username_or_password` is never used [INFO] [stdout] --> src/errors/error_types.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn invalid_username_or_password() -> BusinessError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_expired` is never used [INFO] [stdout] --> src/errors/error_types.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn token_expired() -> BusinessError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `success` and `failed_with_data` are never used [INFO] [stdout] --> src/models/responses/response.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ApiResponse { [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn success(data: Option) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn failed_with_data(code: i32, data: Option, message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.99s [INFO] running `Command { std: "docker" "inspect" "8a231b7272dbbaccaf676e5120c97f8229c6b7bf0717a973ceeeb1a1f5896a58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a231b7272dbbaccaf676e5120c97f8229c6b7bf0717a973ceeeb1a1f5896a58", kill_on_drop: false }` [INFO] [stdout] 8a231b7272dbbaccaf676e5120c97f8229c6b7bf0717a973ceeeb1a1f5896a58