[INFO] cloning repository https://github.com/iFeyz/email-service
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iFeyz/email-service" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiFeyz%2Femail-service", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiFeyz%2Femail-service'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] cf09982d5fc16e5651777b2e03ef8b16b7e142c5
[INFO] checking iFeyz/email-service/cf09982d5fc16e5651777b2e03ef8b16b7e142c5 against master#4cf5f9580233c36f6bc8db76e282ba8a1c1ea491 for pr-154585
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiFeyz%2Femail-service" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/iFeyz/email-service
[INFO] finished tweaking git repo https://github.com/iFeyz/email-service
[INFO] tweaked toml for git repo https://github.com/iFeyz/email-service written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/iFeyz/email-service on toolchain 4cf5f9580233c36f6bc8db76e282ba8a1c1ea491
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/iFeyz/email-service 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" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tempfile v3.15.0
[INFO] [stderr]   Downloaded async-trait v0.1.85
[INFO] [stderr]   Downloaded email-encoding v0.3.1
[INFO] [stderr]   Downloaded hostname v0.4.0
[INFO] [stderr]   Downloaded stacker v0.1.17
[INFO] [stderr]   Downloaded psm v0.1.24
[INFO] [stderr]   Downloaded miniz_oxide v0.8.2
[INFO] [stderr]   Downloaded lettre v0.11.11
[INFO] [stderr]   Downloaded cc v1.2.7
[INFO] [stderr]   Downloaded hyper v1.5.2
[INFO] [stderr]   Downloaded serde_json v1.0.135
[INFO] [stderr]   Downloaded syn v2.0.95
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a0dfa74429f48614b8f62b3d55a5970f9f4df3296ed1e63cdbcdf2ad325b59b4
[INFO] running `Command { std: "docker" "start" "-a" "a0dfa74429f48614b8f62b3d55a5970f9f4df3296ed1e63cdbcdf2ad325b59b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a0dfa74429f48614b8f62b3d55a5970f9f4df3296ed1e63cdbcdf2ad325b59b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0dfa74429f48614b8f62b3d55a5970f9f4df3296ed1e63cdbcdf2ad325b59b4", kill_on_drop: false }`
[INFO] [stdout] a0dfa74429f48614b8f62b3d55a5970f9f4df3296ed1e63cdbcdf2ad325b59b4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4cf5f9580233c36f6bc8db76e282ba8a1c1ea491" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0d66559cfea50efa5c83da455c9179919a450d4021f8e19bd5bb0f4b97b6d183
[INFO] running `Command { std: "docker" "start" "-a" "0d66559cfea50efa5c83da455c9179919a450d4021f8e19bd5bb0f4b97b6d183", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]    Compiling libc v0.2.169
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]     Checking bytes v1.9.0
[INFO] [stderr]    Compiling cc v1.2.7
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]     Checking litemap v0.7.4
[INFO] [stderr]    Compiling writeable v0.5.5
[INFO] [stderr]    Compiling anyhow v1.0.95
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling rustix v0.38.43
[INFO] [stderr]    Compiling icu_locid_transform_data v1.5.0
[INFO] [stderr]    Compiling rustversion v1.0.19
[INFO] [stderr]    Compiling serde_json v1.0.135
[INFO] [stderr]    Compiling indexmap v2.7.0
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling linux-raw-sys v0.4.15
[INFO] [stderr]    Compiling syn v2.0.95
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling icu_properties_data v1.5.0
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling write16 v1.0.0
[INFO] [stderr]    Compiling utf16_iter v1.0.5
[INFO] [stderr]    Compiling pin-project-lite v0.2.16
[INFO] [stderr]    Compiling icu_normalizer_data v1.5.0
[INFO] [stderr]    Compiling home v0.5.11
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]     Checking http v1.2.0
[INFO] [stderr]     Checking cpufeatures v0.2.16
[INFO] [stderr]    Compiling tinyvec v1.8.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.61
[INFO] [stderr]    Compiling itoa v1.0.14
[INFO] [stderr]    Compiling prettyplease v0.1.25
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling regex-syntax v0.8.5
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking socket2 v0.5.8
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling chrono v0.4.39
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling uuid v1.11.0
[INFO] [stderr]    Compiling unicode-properties v0.1.3
[INFO] [stderr]    Compiling petgraph v0.6.5
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling tokio v1.42.0
[INFO] [stderr]    Compiling axum-core v0.3.4
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling lazy_static v1.5.0
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling multimap v0.8.3
[INFO] [stderr]    Compiling whoami v1.5.2
[INFO] [stderr]     Checking futures-intrusive v0.5.0
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling unicode-normalization v0.1.24
[INFO] [stderr]    Compiling axum v0.6.20
[INFO] [stderr]    Compiling openssl-sys v0.9.104
[INFO] [stderr]    Compiling psm v0.1.24
[INFO] [stderr]    Compiling stacker v0.1.17
[INFO] [stderr]    Compiling tempfile v3.15.0
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling openssl v0.10.68
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking data-encoding v2.6.0
[INFO] [stderr]     Checking email-encoding v0.3.1
[INFO] [stderr]     Checking hostname v0.4.0
[INFO] [stderr]     Checking quoted_printable v0.5.1
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling synstructure v0.13.1
[INFO] [stderr]    Compiling zerovec-derive v0.10.3
[INFO] [stderr]    Compiling serde_derive v1.0.217
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling icu_provider_macros v1.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling async-trait v0.1.85
[INFO] [stderr]    Compiling pin-project-internal v1.1.8
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling zerofrom-derive v0.1.5
[INFO] [stderr]    Compiling yoke-derive v0.7.5
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking zerofrom v0.1.5
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]     Checking yoke v0.7.5
[INFO] [stderr]     Checking pin-project v1.1.8
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking ahash v0.8.11
[INFO] [stderr]     Checking zerovec v0.10.4
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking hashlink v0.8.4
[INFO] [stderr]     Checking chumsky v0.9.3
[INFO] [stderr]     Checking tinystr v0.7.6
[INFO] [stderr]     Checking icu_collections v1.5.0
[INFO] [stderr]     Checking icu_locid v1.5.0
[INFO] [stderr]     Checking http-body-util v0.1.2
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking icu_provider v1.5.0
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking tower-http v0.5.2
[INFO] [stderr]     Checking icu_locid_transform v1.5.0
[INFO] [stderr]     Checking icu_properties v1.5.1
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]     Checking serde_path_to_error v0.1.16
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking tokio-util v0.7.13
[INFO] [stderr]     Checking hyper v1.5.2
[INFO] [stderr]     Checking tokio-io-timeout v1.2.0
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking icu_normalizer v1.5.0
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling which v4.4.2
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking hyper-util v0.1.10
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]     Checking sqlx-core v0.7.4
[INFO] [stderr]     Checking tungstenite v0.20.1
[INFO] [stderr]     Checking lettre v0.11.11
[INFO] [stderr]    Compiling prost-derive v0.11.9
[INFO] [stderr]    Compiling prost-derive v0.12.6
[INFO] [stderr]     Checking tokio-tungstenite v0.20.1
[INFO] [stderr]    Compiling prost v0.11.9
[INFO] [stderr]    Compiling prost-types v0.11.9
[INFO] [stderr]     Checking prost v0.12.6
[INFO] [stderr]     Checking sqlx-postgres v0.7.4
[INFO] [stderr]    Compiling prost-build v0.11.9
[INFO] [stderr]    Compiling tonic-build v0.9.2
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]    Compiling email-service v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking hyper-timeout v0.4.1
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]     Checking sqlx v0.7.4
[INFO] [stderr]     Checking tonic v0.10.2
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | /         sqlx::query!(
[INFO] [stdout] 35 | |             r#"CREATE EXTENSION IF NOT EXISTS "uuid-ossp";"#
[INFO] [stdout] 36 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | /         sqlx::query!(
[INFO] [stdout] 42 | |             r#"
[INFO] [stdout] 43 | |             CREATE TABLE IF NOT EXISTS emails (
[INFO] [stdout] 44 | |                 id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
[INFO] [stdout] ...  |
[INFO] [stdout] 50 | |             "#
[INFO] [stdout] 51 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:59:18
[INFO] [stdout]    |
[INFO] [stdout] 59 |           let id = sqlx::query_scalar!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 60 | |             r#"
[INFO] [stdout] 61 | |             INSERT INTO emails (to_address, subject, content)
[INFO] [stdout] 62 | |             VALUES ($1, $2, $3)
[INFO] [stdout] ...  |
[INFO] [stdout] 67 | |             request.content
[INFO] [stdout] 68 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:76:21
[INFO] [stdout]    |
[INFO] [stdout] 76 |           let email = sqlx::query_as!(
[INFO] [stdout]    |  _____________________^
[INFO] [stdout] 77 | |             Email,
[INFO] [stdout] 78 | |             r#"
[INFO] [stdout] 79 | |             SELECT * FROM emails WHERE id = $1
[INFO] [stdout] 80 | |             "#,
[INFO] [stdout] 81 | |             id
[INFO] [stdout] 82 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:90:22
[INFO] [stdout]    |
[INFO] [stdout] 90 |           let emails = sqlx::query_as!(
[INFO] [stdout]    |  ______________________^
[INFO] [stdout] 91 | |             Email,
[INFO] [stdout] 92 | |             r#"
[INFO] [stdout] 93 | |             SELECT * FROM emails ORDER BY sent_at DESC
[INFO] [stdout] 94 | |             "#
[INFO] [stdout] 95 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::email_service::test_utils`
[INFO] [stdout]   --> src/email_service/service.rs:65:31
[INFO] [stdout]    |
[INFO] [stdout] 65 |     use crate::email_service::test_utils::MockSmtpTransport;
[INFO] [stdout]    |                               ^^^^^^^^^^ could not find `test_utils` in `email_service`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 | /         sqlx::query!(
[INFO] [stdout] 35 | |             r#"CREATE EXTENSION IF NOT EXISTS "uuid-ossp";"#
[INFO] [stdout] 36 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | /         sqlx::query!(
[INFO] [stdout] 42 | |             r#"
[INFO] [stdout] 43 | |             CREATE TABLE IF NOT EXISTS emails (
[INFO] [stdout] 44 | |                 id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
[INFO] [stdout] ...  |
[INFO] [stdout] 50 | |             "#
[INFO] [stdout] 51 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:59:18
[INFO] [stdout]    |
[INFO] [stdout] 59 |           let id = sqlx::query_scalar!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 60 | |             r#"
[INFO] [stdout] 61 | |             INSERT INTO emails (to_address, subject, content)
[INFO] [stdout] 62 | |             VALUES ($1, $2, $3)
[INFO] [stdout] ...  |
[INFO] [stdout] 67 | |             request.content
[INFO] [stdout] 68 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_scalar` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:76:21
[INFO] [stdout]    |
[INFO] [stdout] 76 |           let email = sqlx::query_as!(
[INFO] [stdout]    |  _____________________^
[INFO] [stdout] 77 | |             Email,
[INFO] [stdout] 78 | |             r#"
[INFO] [stdout] 79 | |             SELECT * FROM emails WHERE id = $1
[INFO] [stdout] 80 | |             "#,
[INFO] [stdout] 81 | |             id
[INFO] [stdout] 82 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/db/mod.rs:90:22
[INFO] [stdout]    |
[INFO] [stdout] 90 |           let emails = sqlx::query_as!(
[INFO] [stdout]    |  ______________________^
[INFO] [stdout] 91 | |             Email,
[INFO] [stdout] 92 | |             r#"
[INFO] [stdout] 93 | |             SELECT * FROM emails ORDER BY sent_at DESC
[INFO] [stdout] 94 | |             "#
[INFO] [stdout] 95 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no associated function or constant named `new` found for struct `email_service::service::EmailService<T>` in the current scope
[INFO] [stdout]   --> src/email_service/service.rs:70:37
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct EmailService<T: Transport<Error = SmtpError>> {
[INFO] [stdout]    | -------------------------------------------------------- associated function or constant `new` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 70 |         let service = EmailService::new();
[INFO] [stdout]    |                                     ^^^ associated function or constant not found in `email_service::service::EmailService<_>`
[INFO] [stdout]    |
[INFO] [stdout] note: if you're trying to build a new `email_service::service::EmailService<_>`, consider using `email_service::service::EmailService::<SmtpTransport>::with_config` which returns `Result<email_service::service::EmailService<SmtpTransport>, email_service::error::EmailError>`
[INFO] [stdout]   --> src/email_service/service.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 |     pub fn with_config(config: SmtpConfig) -> Result<Self, EmailError> {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `new`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `ahash::HashMapExt`
[INFO] [stdout]            candidate #2: `ahash::HashSetExt`
[INFO] [stdout]            candidate #3: `chumsky::span::Span`
[INFO] [stdout]            candidate #4: `crypto_common::KeyInit`
[INFO] [stdout]            candidate #5: `crypto_common::KeyIvInit`
[INFO] [stdout]            candidate #6: `digest::VariableOutput`
[INFO] [stdout]            candidate #7: `digest::core_api::VariableOutputCore`
[INFO] [stdout]            candidate #8: `digest::digest::Digest`
[INFO] [stdout]            candidate #9: `digest::mac::Mac`
[INFO] [stdout]            candidate #10: `parking_lot_core::thread_parker::ThreadParkerT`
[INFO] [stdout]            candidate #11: `rand::distributions::uniform::UniformSampler`
[INFO] [stdout]            candidate #12: `typenum::marker_traits::Bit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `email_service::service::EmailService<_>` has no field named `smtp_client`
[INFO] [stdout]   --> src/email_service/service.rs:78:13
[INFO] [stdout]    |
[INFO] [stdout] 78 |             smtp_client: mock_transport.clone(),
[INFO] [stdout]    |             ^^^^^^^^^^^ `email_service::service::EmailService<_>` does not have this field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `transport`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `email_service::service::EmailService<_>` has no field named `smtp_client`
[INFO] [stdout]    --> src/email_service/service.rs:100:13
[INFO] [stdout]     |
[INFO] [stdout] 100 |             smtp_client: mock_transport,
[INFO] [stdout]     |             ^^^^^^^^^^^ `email_service::service::EmailService<_>` does not have this field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `transport`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant, associated function, or constant named `AddressError` found for enum `email_service::error::EmailError` in the current scope
[INFO] [stdout]    --> src/email_service/service.rs:112:50
[INFO] [stdout]     |
[INFO] [stdout] 112 |         assert!(matches!(result, Err(EmailError::AddressError(_))));
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^ variant, associated function, or constant not found in `email_service::error::EmailError`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/email_service/error.rs:5:1
[INFO] [stdout]     |
[INFO] [stdout]   5 | pub enum EmailError {
[INFO] [stdout]     | ------------------- variant, associated function, or constant `AddressError` not found for this enum
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `email-service` (lib) due to 5 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0432, E0560, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `email-service` (lib test) due to 10 previous errors
[INFO] running `Command { std: "docker" "inspect" "0d66559cfea50efa5c83da455c9179919a450d4021f8e19bd5bb0f4b97b6d183", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0d66559cfea50efa5c83da455c9179919a450d4021f8e19bd5bb0f4b97b6d183", kill_on_drop: false }`
[INFO] [stdout] 0d66559cfea50efa5c83da455c9179919a450d4021f8e19bd5bb0f4b97b6d183
