[INFO] cloning repository https://github.com/thuandcod777/smtp_mail_client [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thuandcod777/smtp_mail_client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuandcod777%2Fsmtp_mail_client", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuandcod777%2Fsmtp_mail_client'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1f898f6026a7ba7be05f3ea2a879d69b76bed459 [INFO] checking thuandcod777/smtp_mail_client against try#b4c55082edd8dec08ce8af276d7054d9c4db20c4 for pr-147984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthuandcod777%2Fsmtp_mail_client" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/thuandcod777/smtp_mail_client [INFO] finished tweaking git repo https://github.com/thuandcod777/smtp_mail_client [INFO] tweaked toml for git repo https://github.com/thuandcod777/smtp_mail_client written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/thuandcod777/smtp_mail_client on toolchain b4c55082edd8dec08ce8af276d7054d9c4db20c4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/thuandcod777/smtp_mail_client 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" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "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" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11584db6577cac2080c49103f35aa0104956f0c269955e530dba6a1608fbcef0 [INFO] running `Command { std: "docker" "start" "-a" "11584db6577cac2080c49103f35aa0104956f0c269955e530dba6a1608fbcef0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11584db6577cac2080c49103f35aa0104956f0c269955e530dba6a1608fbcef0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11584db6577cac2080c49103f35aa0104956f0c269955e530dba6a1608fbcef0", kill_on_drop: false }` [INFO] [stdout] 11584db6577cac2080c49103f35aa0104956f0c269955e530dba6a1608fbcef0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b4c55082edd8dec08ce8af276d7054d9c4db20c4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38a74fa35aecf654917c4c9e00a727b9dbb9c2a54acbf9fb2ae99e3ef17401e5 [INFO] running `Command { std: "docker" "start" "-a" "38a74fa35aecf654917c4c9e00a727b9dbb9c2a54acbf9fb2ae99e3ef17401e5", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.227 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling serde v1.0.227 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.227 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking regex-automata v0.4.11 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling tokio-openssl v0.6.5 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking crc32fast v1.5.0 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling pest v2.8.2 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking email-encoding v0.2.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking quoted_printable v0.4.8 [INFO] [stderr] Checking regex v1.11.3 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking cookie v0.16.2 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling pest_meta v2.8.2 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling pest_generator v2.8.2 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking actix-rt v2.11.0 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Compiling pest_derive v2.8.2 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking handlebars v6.3.2 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking actix-tls v3.4.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking lettre v0.10.4 [INFO] [stderr] Checking actix-http v3.11.1 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Checking actix-cors v0.7.1 [INFO] [stderr] Checking smtp_mail_client v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/send_mail.rs:23:84 [INFO] [stdout] | [INFO] [stdout] 23 | ...word:&str,to:&str,subject:&str,body:&str,replay:&str,port:u16)->Result<(),lettre::transport::smtp::Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `smtp_user`, `smtp_pass`, and `smtp_to` are never read [INFO] [stdout] --> src/config.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Config{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub smtp_user:String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | pub smtp_pass:String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | pub smtp_from:String, [INFO] [stdout] 8 | pub smtp_to:String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are 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: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/error.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum ErrorMessage { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 22 | EmptyPassword, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | ExceededMaxPasswordLength(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | HasingError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | InvalidHashFormate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | InvalididToken, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 27 | ServerError, [INFO] [stdout] 28 | WrongCredentials, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | EmailExist, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | UserNoLongerExist, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | TokenNotProviced, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | PermissionDenied, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `bat_request`, `unique_constraint_voilation`, and `unauthorized` are never used [INFO] [stdout] --> src/error.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl HttpError { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 82 | pub fn new(message: impl Into, status: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn bat_request(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn unique_constraint_voilation(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn unauthorized(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code_otp` is never used [INFO] [stdout] --> src/send_mail.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn generate_code_otp()->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/send_mail.rs:23:84 [INFO] [stdout] | [INFO] [stdout] 23 | ...word:&str,to:&str,subject:&str,body:&str,replay:&str,port:u16)->Result<(),lettre::transport::smtp::Error>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `smtp_user`, `smtp_pass`, and `smtp_to` are never read [INFO] [stdout] --> src/config.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Config{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub smtp_user:String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 6 | pub smtp_pass:String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | pub smtp_from:String, [INFO] [stdout] 8 | pub smtp_to:String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are 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: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/error.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum ErrorMessage { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 22 | EmptyPassword, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 23 | ExceededMaxPasswordLength(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | HasingError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 25 | InvalidHashFormate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | InvalididToken, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 27 | ServerError, [INFO] [stdout] 28 | WrongCredentials, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | EmailExist, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | UserNoLongerExist, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | TokenNotProviced, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | PermissionDenied, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `bat_request`, `unique_constraint_voilation`, and `unauthorized` are never used [INFO] [stdout] --> src/error.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl HttpError { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 82 | pub fn new(message: impl Into, status: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn bat_request(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn unique_constraint_voilation(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn unauthorized(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_code_otp` is never used [INFO] [stdout] --> src/send_mail.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn generate_code_otp()->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_email` is never used [INFO] [stdout] --> src/send_mail.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn send_email(email:&str,account:&str,password:&str,to:&str,subject:&str,body:&str,replay:&str,port:u16)->Result<(),lettre::tra... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_email` is never used [INFO] [stdout] --> src/send_mail.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn send_email(email:&str,account:&str,password:&str,to:&str,subject:&str,body:&str,replay:&str,port:u16)->Result<(),lettre::tra... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.04s [INFO] running `Command { std: "docker" "inspect" "38a74fa35aecf654917c4c9e00a727b9dbb9c2a54acbf9fb2ae99e3ef17401e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38a74fa35aecf654917c4c9e00a727b9dbb9c2a54acbf9fb2ae99e3ef17401e5", kill_on_drop: false }` [INFO] [stdout] 38a74fa35aecf654917c4c9e00a727b9dbb9c2a54acbf9fb2ae99e3ef17401e5