[INFO] cloning repository https://github.com/mmichael255/actix-simple [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mmichael255/actix-simple" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmichael255%2Factix-simple", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmichael255%2Factix-simple'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92869dfd729043907cb674042aa315ef797dfd77 [INFO] checking mmichael255/actix-simple against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmmichael255%2Factix-simple" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mmichael255/actix-simple [INFO] finished tweaking git repo https://github.com/mmichael255/actix-simple [INFO] tweaked toml for git repo https://github.com/mmichael255/actix-simple written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mmichael255/actix-simple on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mmichael255/actix-simple 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" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: resolver for the non root package will be ignored, specify resolver at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/webservice/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-5-tc2/source/webclient/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: /workspace/builds/worker-5-tc2/source/webservice/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `sqlx` dependency) [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 atoi v0.4.0 [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.3.42 [INFO] [stderr] Downloaded wasm-bindgen-test v0.3.42 [INFO] [stderr] Downloaded hashlink v0.7.0 [INFO] [stderr] Downloaded sqlx-rt v0.5.13 [INFO] [stderr] Downloaded serde-wasm-bindgen v0.4.5 [INFO] [stderr] Downloaded sqlx-macros v0.5.13 [INFO] [stderr] Downloaded sqlx-core v0.5.13 [INFO] [stderr] Downloaded sqlx v0.5.13 [INFO] [stderr] Downloaded openssl-src v300.3.1+3.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1cf15180d6e7b7ee11f0f31b8c67ed5cb79463912ade142a4c52325eb0d1881 [INFO] running `Command { std: "docker" "start" "-a" "b1cf15180d6e7b7ee11f0f31b8c67ed5cb79463912ade142a4c52325eb0d1881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1cf15180d6e7b7ee11f0f31b8c67ed5cb79463912ade142a4c52325eb0d1881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1cf15180d6e7b7ee11f0f31b8c67ed5cb79463912ade142a4c52325eb0d1881", kill_on_drop: false }` [INFO] [stdout] b1cf15180d6e7b7ee11f0f31b8c67ed5cb79463912ade142a4c52325eb0d1881 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fda0e36afeef1979ef7d83e1057b75ff1921710c229ae0120840ad3ea83b5d60 [INFO] running `Command { std: "docker" "start" "-a" "fda0e36afeef1979ef7d83e1057b75ff1921710c229ae0120840ad3ea83b5d60", kill_on_drop: false }` [INFO] [stderr] warning: resolver for the non root package will be ignored, specify resolver at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/webservice/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/webclient/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] warning: /opt/rustwide/workdir/webservice/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `sqlx` dependency) [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.92 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Checking tokio v1.38.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling wasm-bindgen v0.2.92 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Checking bytestring v1.3.1 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling openssl-src v300.3.1+3.3.1 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.92 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.92 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking actix-server v2.4.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.42 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.92 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking sqlx-rt v0.5.13 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking actix-http v3.8.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking sqlx-core v0.5.13 [INFO] [stderr] Checking actix-web v4.8.0 [INFO] [stderr] Checking js-sys v0.3.69 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking actix-cors v0.6.5 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.42 [INFO] [stderr] Checking web-sys v0.3.69 [INFO] [stderr] Checking serde-wasm-bindgen v0.4.5 [INFO] [stderr] Checking wasm-bindgen-test v0.3.42 [INFO] [stderr] Compiling sqlx-macros v0.5.13 [INFO] [stderr] Checking sqlx v0.5.13 [INFO] [stderr] Checking webclient v0.1.0 (/opt/rustwide/workdir/webclient) [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> webclient/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/lib.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | tr.append_child(&td); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = tr.append_child(&td); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | tr.append_child(&td); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 44 | let _ = tr.append_child(&td); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/lib.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | tr.append_child(&td); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = tr.append_child(&td); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/models/course.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | request.headers().set("Accept", "application/json"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = request.headers().set("Accept", "application/json"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> webclient/src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/lib.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | tr.append_child(&td); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = tr.append_child(&td); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | tr.append_child(&td); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 44 | let _ = tr.append_child(&td); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/lib.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | tr.append_child(&td); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = tr.append_child(&td); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> webclient/src/models/course.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | request.headers().set("Accept", "application/json"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = request.headers().set("Accept", "application/json"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking webservice v0.1.0 (/opt/rustwide/workdir/webservice) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | let rows: Vec = sqlx::query_as!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 10 | | Course, [INFO] [stdout] 11 | | "select * from course [INFO] [stdout] 12 | | where teacher_id = $1", [INFO] [stdout] 13 | | teacher_id [INFO] [stdout] 14 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | let row = sqlx::query_as!( [INFO] [stdout] | _______________^ [INFO] [stdout] 42 | | Course, [INFO] [stdout] 43 | | "select * from course [INFO] [stdout] 44 | | where teacher_id = $1 and id = $2", [INFO] [stdout] 45 | | teacher_id, [INFO] [stdout] 46 | | course_id [INFO] [stdout] 47 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 72 | let row = sqlx::query_as!(Course, [INFO] [stdout] | _______________^ [INFO] [stdout] 73 | | "insert into course (teacher_id, name,description,format,structure,duration,price,language,level) [INFO] [stdout] 74 | | values($1,$2,$3,$4,$5,$6,$7,$8,$9) [INFO] [stdout] 75 | | returning id, teacher_id, name, time,description,format,structure,duration,price,language,level", [INFO] [stdout] ... | [INFO] [stdout] 84 | | new_course.level [INFO] [stdout] 85 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 98 | | "delete from course where teacher_id = $1 and id = $2", [INFO] [stdout] 99 | | teacher_id, [INFO] [stdout] 100 | | course_id [INFO] [stdout] 101 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 114 | | Course, [INFO] [stdout] 115 | | "select * from course where teacher_id = $1 and id = $2", [INFO] [stdout] 116 | | teacher_id, [INFO] [stdout] 117 | | course_id [INFO] [stdout] 118 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:162:22 [INFO] [stdout] | [INFO] [stdout] 162 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 163 | | Course, [INFO] [stdout] 164 | | "update course set name = $1 ,description= $2,format= $3,structure= $4,duration= $5,price= $6,language= $7,level= $8 [INFO] [stdout] 165 | | where teacher_id = $9 and id = $10 [INFO] [stdout] ... | [INFO] [stdout] 176 | | course_id [INFO] [stdout] 177 | | ).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: `Result` [INFO] [stdout] --> webservice/src/bin/../error.rs:1:56 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{error, http::StatusCode, HttpResponse, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | let rows: Vec = sqlx::query_as!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 10 | | Course, [INFO] [stdout] 11 | | "select * from course [INFO] [stdout] 12 | | where teacher_id = $1", [INFO] [stdout] 13 | | teacher_id [INFO] [stdout] 14 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | let row = sqlx::query_as!( [INFO] [stdout] | _______________^ [INFO] [stdout] 42 | | Course, [INFO] [stdout] 43 | | "select * from course [INFO] [stdout] 44 | | where teacher_id = $1 and id = $2", [INFO] [stdout] 45 | | teacher_id, [INFO] [stdout] 46 | | course_id [INFO] [stdout] 47 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 72 | let row = sqlx::query_as!(Course, [INFO] [stdout] | _______________^ [INFO] [stdout] 73 | | "insert into course (teacher_id, name,description,format,structure,duration,price,language,level) [INFO] [stdout] 74 | | values($1,$2,$3,$4,$5,$6,$7,$8,$9) [INFO] [stdout] 75 | | returning id, teacher_id, name, time,description,format,structure,duration,price,language,level", [INFO] [stdout] ... | [INFO] [stdout] 84 | | new_course.level [INFO] [stdout] 85 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 98 | | "delete from course where teacher_id = $1 and id = $2", [INFO] [stdout] 99 | | teacher_id, [INFO] [stdout] 100 | | course_id [INFO] [stdout] 101 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 114 | | Course, [INFO] [stdout] 115 | | "select * from course where teacher_id = $1 and id = $2", [INFO] [stdout] 116 | | teacher_id, [INFO] [stdout] 117 | | course_id [INFO] [stdout] 118 | | ) [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] --> webservice/src/bin/../dbaccess/course.rs:162:22 [INFO] [stdout] | [INFO] [stdout] 162 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 163 | | Course, [INFO] [stdout] 164 | | "update course set name = $1 ,description= $2,format= $3,structure= $4,duration= $5,price= $6,language= $7,level= $8 [INFO] [stdout] 165 | | where teacher_id = $9 and id = $10 [INFO] [stdout] ... | [INFO] [stdout] 176 | | course_id [INFO] [stdout] 177 | | ).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: `Result` [INFO] [stdout] --> webservice/src/bin/../error.rs:1:56 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{error, http::StatusCode, HttpResponse, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 114 | | Course, [INFO] [stdout] 115 | | "select * from course where teacher_id = $1 and id = $2", [INFO] [stdout] 116 | | teacher_id, [INFO] [stdout] ... | [INFO] [stdout] 119 | | .fetch_one(pool) [INFO] [stdout] 120 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> webservice/src/bin/../dbaccess/course.rs:113:30 [INFO] [stdout] | [INFO] [stdout] 113 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 114 | | Course, [INFO] [stdout] 115 | | "select * from course where teacher_id = $1 and id = $2", [INFO] [stdout] 116 | | teacher_id, [INFO] [stdout] ... | [INFO] [stdout] 119 | | .fetch_one(pool) [INFO] [stdout] 120 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> webservice/src/bin/../error.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | MyError::DBError(msg) | MyError::ActixError(msg) => StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 39 | MyError::DBError(_msg) | MyError::ActixError(_msg) => StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> webservice/src/bin/../error.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | MyError::NotFound(msg) => StatusCode::NOT_FOUND, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> webservice/src/bin/../error.rs:39:30 [INFO] [stdout] | [INFO] [stdout] 39 | MyError::DBError(msg) | MyError::ActixError(msg) => StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 39 | MyError::DBError(_msg) | MyError::ActixError(_msg) => StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> webservice/src/bin/../error.rs:40:31 [INFO] [stdout] | [INFO] [stdout] 40 | MyError::NotFound(msg) => StatusCode::NOT_FOUND, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `webservice` (bin "teachers-service") due to 7 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `webservice` (bin "teachers-service" test) due to 7 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fda0e36afeef1979ef7d83e1057b75ff1921710c229ae0120840ad3ea83b5d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fda0e36afeef1979ef7d83e1057b75ff1921710c229ae0120840ad3ea83b5d60", kill_on_drop: false }` [INFO] [stdout] fda0e36afeef1979ef7d83e1057b75ff1921710c229ae0120840ad3ea83b5d60