[INFO] cloning repository https://github.com/MassinissaDjellouli/rust_todo_backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MassinissaDjellouli/rust_todo_backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMassinissaDjellouli%2Frust_todo_backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMassinissaDjellouli%2Frust_todo_backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2957c60b9b75566a19cf3be63116852cb24d9f72 [INFO] checking MassinissaDjellouli/rust_todo_backend against try#fc545c6b951a304df08b327c158f92678582f435 for pr-140557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMassinissaDjellouli%2Frust_todo_backend" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MassinissaDjellouli/rust_todo_backend on toolchain fc545c6b951a304df08b327c158f92678582f435 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MassinissaDjellouli/rust_todo_backend [INFO] finished tweaking git repo https://github.com/MassinissaDjellouli/rust_todo_backend [INFO] tweaked toml for git repo https://github.com/MassinissaDjellouli/rust_todo_backend written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MassinissaDjellouli/rust_todo_backend 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" "+fc545c6b951a304df08b327c158f92678582f435" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking MassinissaDjellouli/rust_todo_backend against try#fc545c6b951a304df08b327c158f92678582f435 for pr-140557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMassinissaDjellouli%2Frust_todo_backend" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MassinissaDjellouli/rust_todo_backend on toolchain fc545c6b951a304df08b327c158f92678582f435 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MassinissaDjellouli/rust_todo_backend [INFO] finished tweaking git repo https://github.com/MassinissaDjellouli/rust_todo_backend [INFO] tweaked toml for git repo https://github.com/MassinissaDjellouli/rust_todo_backend written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MassinissaDjellouli/rust_todo_backend 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" "+fc545c6b951a304df08b327c158f92678582f435" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8477ceb91d06a4236044cea46657d9f30ebea564bdceea30af20970c769bafc [INFO] running `Command { std: "docker" "start" "-a" "d8477ceb91d06a4236044cea46657d9f30ebea564bdceea30af20970c769bafc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8477ceb91d06a4236044cea46657d9f30ebea564bdceea30af20970c769bafc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8477ceb91d06a4236044cea46657d9f30ebea564bdceea30af20970c769bafc", kill_on_drop: false }` [INFO] [stdout] d8477ceb91d06a4236044cea46657d9f30ebea564bdceea30af20970c769bafc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aae29f32fbbd63143b0a2145bd8575554cf9a036babc1dd3abdafa1e2dc743f9 [INFO] running `Command { std: "docker" "start" "-a" "aae29f32fbbd63143b0a2145bd8575554cf9a036babc1dd3abdafa1e2dc743f9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling openssl v0.10.63 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking http v1.0.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Checking indexmap v2.2.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling uuid v1.7.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling openssl-sys v0.9.99 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling atomic-write-file v0.1.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking http-body-util v0.1.0 [INFO] [stderr] Compiling axum v0.7.4 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling pin-project-internal v1.1.4 [INFO] [stderr] Compiling async-recursion v1.0.5 [INFO] [stderr] Checking pin-project v1.1.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking serde_path_to_error v0.1.15 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking h2 v0.4.2 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Checking hyper v1.1.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking sqlx-core v0.7.3 [INFO] [stderr] Checking sqlx-postgres v0.7.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.3 [INFO] [stderr] Compiling sqlx-macros v0.7.3 [INFO] [stderr] Checking sqlx v0.7.3 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `user` [INFO] [stdout] --> src/bin/structs.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod user; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `user`, create file "src/bin/user.rs" or "src/bin/user/mod.rs" [INFO] [stdout] = note: if there is a `mod user` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `db_conn` [INFO] [stdout] --> src/bin/structs.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod db_conn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `db_conn`, create file "src/bin/db_conn.rs" or "src/bin/db_conn/mod.rs" [INFO] [stdout] = note: if there is a `mod db_conn` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `structs` [INFO] [stdout] --> src/bin/structs.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod db_conn; [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/structs.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0583, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `routes_impl` [INFO] [stdout] --> src/bin/routes.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod routes_impl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `routes_impl`, create file "src/bin/routes_impl.rs" or "src/bin/routes_impl/mod.rs" [INFO] [stdout] = note: if there is a `mod routes_impl` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `routes` [INFO] [stdout] --> src/bin/routes.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod routes_impl; [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/routes.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "structs") due to 3 previous errors [INFO] [stdout] Some errors have detailed explanations: E0583, E0601. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `user` [INFO] [stdout] --> src/bin/structs.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod user; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `user`, create file "src/bin/user.rs" or "src/bin/user/mod.rs" [INFO] [stdout] = note: if there is a `mod user` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `routes_impl` [INFO] [stdout] --> src/bin/routes.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod routes_impl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `routes_impl`, create file "src/bin/routes_impl.rs" or "src/bin/routes_impl/mod.rs" [INFO] [stdout] = note: if there is a `mod routes_impl` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `db_conn` [INFO] [stdout] --> src/bin/structs.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod db_conn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `db_conn`, create file "src/bin/db_conn.rs" or "src/bin/db_conn/mod.rs" [INFO] [stdout] = note: if there is a `mod db_conn` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "routes") due to 2 previous errors [INFO] [stderr] error: could not compile `backend` (bin "routes" test) due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `errors` [INFO] [stdout] | [INFO] [stdout] = note: consider adding a `main` function to `src/bin/errors.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "structs" test) due to 2 previous errors [INFO] [stderr] error: could not compile `backend` (bin "errors") due to 1 previous error [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/bin/structs/user.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | / sqlx::query_as!( [INFO] [stdout] 19 | | User, [INFO] [stdout] 20 | | r#"SELECT * FROM todo_app.users WHERE username = $1"#, [INFO] [stdout] 21 | | username [INFO] [stdout] 22 | | ).fetch_one(pool).await [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/bin/structs/user.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / sqlx::query_as!( [INFO] [stdout] 26 | | User, [INFO] [stdout] 27 | | r#"INSERT INTO todo_app.users (username, hashed_password) VALUES ($1, $2) RETURNING *"#, [INFO] [stdout] 28 | | username, [INFO] [stdout] 29 | | hashed_password [INFO] [stdout] 30 | | ).fetch_one(pool).await [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/bin/structs/user.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | / sqlx::query_as!( [INFO] [stdout] 34 | | User, [INFO] [stdout] 35 | | r#"SELECT * FROM todo_app.users WHERE id = $1"#, [INFO] [stdout] 36 | | id [INFO] [stdout] 37 | | ).fetch_one(pool).await [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/bin/structs/user.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | / sqlx::query_as!( [INFO] [stdout] 19 | | User, [INFO] [stdout] 20 | | r#"SELECT * FROM todo_app.users WHERE username = $1"#, [INFO] [stdout] 21 | | username [INFO] [stdout] 22 | | ).fetch_one(pool).await [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/bin/structs/user.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / sqlx::query_as!( [INFO] [stdout] 26 | | User, [INFO] [stdout] 27 | | r#"INSERT INTO todo_app.users (username, hashed_password) VALUES ($1, $2) RETURNING *"#, [INFO] [stdout] 28 | | username, [INFO] [stdout] 29 | | hashed_password [INFO] [stdout] 30 | | ).fetch_one(pool).await [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/bin/structs/user.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | / sqlx::query_as!( [INFO] [stdout] 34 | | User, [INFO] [stdout] 35 | | r#"SELECT * FROM todo_app.users WHERE id = $1"#, [INFO] [stdout] 36 | | id [INFO] [stdout] 37 | | ).fetch_one(pool).await [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] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Once` [INFO] [stdout] --> src/bin/structs/db_conn.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Once; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/bin/routes/routes_impl.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Once` [INFO] [stdout] --> src/bin/structs/db_conn.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Once; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/bin/routes/routes_impl.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/routes/routes_impl.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 21 | routes.insert("/user",Box::new(post_create_user)); [INFO] [stdout] | ------ -------------------------- this argument has type `Box) -> impl std::future::Future, StatusCode>> {post_create_user}>`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `routes` to have type `HashMap<&str, Box) -> impl std::future::Future, StatusCode>> {post_create_user}>>` [INFO] [stdout] 22 | Self { [INFO] [stdout] 23 | routes [INFO] [stdout] | ^^^^^^ expected `HashMap<&str, Box ...>>`, found `HashMap<&str, Box<...>>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<&'a _, Box<(dyn Fn(axum::Json) -> (dyn std::future::Future> + 'static) + 'static)>>` [INFO] [stdout] found struct `HashMap<&_, Box) -> impl std::future::Future, StatusCode>> {post_create_user}>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/routes/routes_impl.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 21 | routes.insert("/user",Box::new(post_create_user)); [INFO] [stdout] | ------ -------------------------- this argument has type `Box) -> impl std::future::Future, StatusCode>> {post_create_user}>`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `routes` to have type `HashMap<&str, Box) -> impl std::future::Future, StatusCode>> {post_create_user}>>` [INFO] [stdout] 22 | Self { [INFO] [stdout] 23 | routes [INFO] [stdout] | ^^^^^^ expected `HashMap<&str, Box ...>>`, found `HashMap<&str, Box<...>>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<&'a _, Box<(dyn Fn(axum::Json) -> (dyn std::future::Future> + 'static) + 'static)>>` [INFO] [stdout] found struct `HashMap<&_, Box) -> impl std::future::Future, StatusCode>> {post_create_user}>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `impl Future, ...>>: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | .route("/user", axum::routing::post(routes.get_route("/user"))); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for `impl Future) -> ...>, ...>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] = help: the following other types implement trait `Handler`: [INFO] [stdout] `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] `axum::handler::Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.4/src/routing/method_routing.rs:389:1 [INFO] [stdout] | [INFO] [stdout] 389 | top_level_handler_fn!(post, POST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | required by this bound in `post` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/backend-cd66bc7d89a58d30.long-type-8815026089070359773.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `impl Future, ...>>: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:11:45 [INFO] [stdout] | [INFO] [stdout] 11 | .route("/user", axum::routing::post(routes.get_route("/user"))); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for `impl Future) -> ...>, ...>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] = help: the following other types implement trait `Handler`: [INFO] [stdout] `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] `axum::handler::Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.7.4/src/routing/method_routing.rs:389:1 [INFO] [stdout] | [INFO] [stdout] 389 | top_level_handler_fn!(post, POST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | required by this bound in `post` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/backend-1e66f21a47c3a469.long-type-4550588488281982801.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend" test) due to 5 previous errors; 3 warnings emitted [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend") due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "aae29f32fbbd63143b0a2145bd8575554cf9a036babc1dd3abdafa1e2dc743f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aae29f32fbbd63143b0a2145bd8575554cf9a036babc1dd3abdafa1e2dc743f9", kill_on_drop: false }` [INFO] [stdout] aae29f32fbbd63143b0a2145bd8575554cf9a036babc1dd3abdafa1e2dc743f9