[INFO] cloning repository https://github.com/toadslop/ezytutors [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/toadslop/ezytutors" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoadslop%2Fezytutors", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoadslop%2Fezytutors'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99a37c79f3eb21141dd31330d7e5d75444894104 [INFO] checking toadslop/ezytutors against try#ed606620234c6b50f2414162c4bbabd5f4a925f3 for pr-147995 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoadslop%2Fezytutors" "/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/toadslop/ezytutors [INFO] finished tweaking git repo https://github.com/toadslop/ezytutors [INFO] tweaked toml for git repo https://github.com/toadslop/ezytutors written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/toadslop/ezytutors on toolchain ed606620234c6b50f2414162c4bbabd5f4a925f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/toadslop/ezytutors 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" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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/tutor-web-service/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] warning: /workspace/builds/worker-5-tc2/source/tutor-web-app-ssr/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] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded chrono-tz-build v0.0.2 [INFO] [stderr] Downloaded uncased v0.9.6 [INFO] [stderr] Downloaded siphasher v0.3.9 [INFO] [stderr] Downloaded crossbeam-utils v0.8.7 [INFO] [stderr] Downloaded whoami v1.2.1 [INFO] [stderr] Downloaded sqlx-rt v0.2.0 [INFO] [stderr] Downloaded crossbeam-queue v0.3.4 [INFO] [stderr] Downloaded buf-min v0.4.0 [INFO] [stderr] Downloaded actix-files v0.5.0 [INFO] [stderr] Downloaded v_escape_derive v0.8.5 [INFO] [stderr] Downloaded v_escape v0.15.0 [INFO] [stderr] Downloaded ahash v0.6.3 [INFO] [stderr] Downloaded trust-dns-resolver v0.19.7 [INFO] [stderr] Downloaded crossbeam-channel v0.5.2 [INFO] [stderr] Downloaded serde_json v1.0.78 [INFO] [stderr] Downloaded actix-web v3.3.3 [INFO] [stderr] Downloaded crc32fast v1.3.1 [INFO] [stderr] Downloaded rust-argon2 v1.0.0 [INFO] [stderr] Downloaded openssl-sys v0.9.72 [INFO] [stderr] Downloaded sqlx v0.4.2 [INFO] [stderr] Downloaded v_htmlescape v0.12.0 [INFO] [stderr] Downloaded cookie v0.14.4 [INFO] [stderr] Downloaded actix-http v2.2.2 [INFO] [stderr] Downloaded trust-dns-proto v0.19.7 [INFO] [stderr] Downloaded const_fn v0.4.9 [INFO] [stderr] Downloaded sqlx-core v0.4.2 [INFO] [stderr] Downloaded cargo_metadata v0.12.3 [INFO] [stderr] Downloaded libc v0.2.117 [INFO] [stderr] Downloaded actix-rt v2.6.0 [INFO] [stderr] Downloaded sqlformat v0.1.8 [INFO] [stderr] Downloaded tera v1.15.0 [INFO] [stderr] Downloaded chrono-tz v0.6.1 [INFO] [stderr] Downloaded sqlx-macros v0.4.2 [INFO] [stderr] Downloaded tokio-native-tls v0.1.0 [INFO] [stderr] Downloaded ignore v0.4.18 [INFO] [stderr] Downloaded brotli v3.3.3 [INFO] [stderr] Downloaded openssl-src v111.17.0+1.1.1m [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e8d16ce8351255ec1fd88ca353ffa4c412c266c039f271d4a41bca1cafa2fad [INFO] running `Command { std: "docker" "start" "-a" "5e8d16ce8351255ec1fd88ca353ffa4c412c266c039f271d4a41bca1cafa2fad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e8d16ce8351255ec1fd88ca353ffa4c412c266c039f271d4a41bca1cafa2fad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e8d16ce8351255ec1fd88ca353ffa4c412c266c039f271d4a41bca1cafa2fad", kill_on_drop: false }` [INFO] [stdout] 5e8d16ce8351255ec1fd88ca353ffa4c412c266c039f271d4a41bca1cafa2fad [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c430fdadc997dcf3a87cbd297d59300952149f84d051e3986be4914ef5d775fd [INFO] running `Command { std: "docker" "start" "-a" "c430fdadc997dcf3a87cbd297d59300952149f84d051e3986be4914ef5d775fd", kill_on_drop: false }` [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/tutor-web-app-ssr/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] warning: /opt/rustwide/workdir/tutor-web-service/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 libc v0.2.117 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking futures-sink v0.3.19 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking futures-io v0.3.19 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Compiling openssl-src v111.17.0+1.1.1m [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling ahash v0.6.3 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.4 [INFO] [stderr] Compiling crc32fast v1.3.1 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Checking flate2 v1.0.22 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking brotli v3.3.3 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling hashlink v0.6.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.2 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Checking bytestring v1.0.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling whoami v1.2.1 [INFO] [stderr] Compiling chrono-tz-build v0.0.2 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Compiling v_escape v0.15.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Checking globset v0.4.8 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking buf-min v0.4.0 [INFO] [stderr] Compiling v_htmlescape v0.12.0 [INFO] [stderr] Checking deunicode v0.4.3 [INFO] [stderr] Checking blake2b_simd v1.0.0 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Checking humansize v1.1.1 [INFO] [stderr] Checking ignore v0.4.18 [INFO] [stderr] Compiling chrono-tz v0.6.1 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Checking tokio v1.16.1 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Checking rust-argon2 v1.0.0 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling v_escape_derive v0.8.5 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking actix-rt v2.6.0 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking pin-project v0.4.29 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking futures-executor v0.3.19 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking futures v0.3.19 [INFO] [stderr] Checking trust-dns-proto v0.19.7 [INFO] [stderr] Checking actix-utils v2.0.0 [INFO] [stderr] Checking actix-server v1.0.4 [INFO] [stderr] Checking actix-tls v2.0.0 [INFO] [stderr] Checking trust-dns-resolver v0.19.7 [INFO] [stderr] Checking actix-testing v1.0.1 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking actix-router v0.2.7 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Checking actix-http v2.2.2 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Checking awc v2.0.3 [INFO] [stderr] Checking actix-web v3.3.3 [INFO] [stderr] Checking tera v1.15.0 [INFO] [stderr] Checking actix-files v0.5.0 [INFO] [stderr] Checking tokio-native-tls v0.1.0 [INFO] [stderr] Checking sqlx-rt v0.2.0 [INFO] [stderr] Checking sqlx-core v0.4.2 [INFO] [stderr] Compiling sqlx-macros v0.4.2 [INFO] [stderr] Checking sqlx v0.4.2 [INFO] [stderr] Checking tutor-web-app-ssr v0.1.0 (/opt/rustwide/workdir/tutor-web-app-ssr) [INFO] [stderr] Checking tutor-db v0.1.0 (/opt/rustwide/workdir/tutor-web-service) [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | let course_rows: Vec = sqlx::query_as!( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 11 | | Course, [INFO] [stdout] 12 | | "SELECT * FROM courses where tutor_id = $1", [INFO] [stdout] 13 | | tutor_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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 27 | | Course, [INFO] [stdout] 28 | | "SELECT * FROM courses WHERE tutor_id = $1 AND course_id = $2", [INFO] [stdout] 29 | | tutor_id, [INFO] [stdout] 30 | | course_id, [INFO] [stdout] 31 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 47 | | Course, [INFO] [stdout] 48 | | "INSERT INTO courses( \ [INFO] [stdout] 49 | | tutor_id, \ [INFO] [stdout] ... | [INFO] [stdout] 78 | | new_course.course_price, [INFO] [stdout] 79 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 92 | | "DELETE FROM courses WHERE tutor_id = $1 AND course_id = $2", [INFO] [stdout] 93 | | tutor_id, [INFO] [stdout] 94 | | course_id, [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` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | let course_rows: Vec = sqlx::query_as!( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 11 | | Course, [INFO] [stdout] 12 | | "SELECT * FROM courses where tutor_id = $1", [INFO] [stdout] 13 | | tutor_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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 27 | | Course, [INFO] [stdout] 28 | | "SELECT * FROM courses WHERE tutor_id = $1 AND course_id = $2", [INFO] [stdout] 29 | | tutor_id, [INFO] [stdout] 30 | | course_id, [INFO] [stdout] 31 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 110 | | Course, [INFO] [stdout] 111 | | "SELECT * FROM courses where tutor_id = $1 and course_id = $2", [INFO] [stdout] 112 | | tutor_id, [INFO] [stdout] 113 | | course_id [INFO] [stdout] 114 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | / sqlx::query_as!( [INFO] [stdout] 163 | | Course, [INFO] [stdout] 164 | | "UPDATE courses set course_name = $1, course_description = $2, course_format = $3, [INFO] [stdout] 165 | | course_structure = $4, course_duration = $5, course_price = $6, course_language = $7, [INFO] [stdout] ... | [INFO] [stdout] 169 | | structure, duration, price, language,level, tutor_id, course_id [INFO] [stdout] 170 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 9 | | Tutor, [INFO] [stdout] 10 | | "SELECT * FROM tutors", [INFO] [stdout] 11 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | let course_row = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 47 | | Course, [INFO] [stdout] 48 | | "INSERT INTO courses( \ [INFO] [stdout] 49 | | tutor_id, \ [INFO] [stdout] ... | [INFO] [stdout] 78 | | new_course.course_price, [INFO] [stdout] 79 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 91 | let course_row = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 92 | | "DELETE FROM courses WHERE tutor_id = $1 AND course_id = $2", [INFO] [stdout] 93 | | tutor_id, [INFO] [stdout] 94 | | course_id, [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` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 22 | | Tutor, [INFO] [stdout] 23 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 24 | | tutor_id, [INFO] [stdout] 25 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 36 | | Tutor, [INFO] [stdout] 37 | | "INSERT INTO tutors(tutor_id, tutor_name, tutor_pic_url, tutor_profile) \ [INFO] [stdout] 38 | | VALUES (DEFAULT, $1, $2, $3) RETURNING \ [INFO] [stdout] 39 | | tutor_id, tutor_name, tutor_pic_url, tutor_profile", [INFO] [stdout] 40 | | new_tutor.tutor_name, new_tutor.tutor_pic_url, new_tutor.tutor_profile, [INFO] [stdout] 41 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 110 | | Course, [INFO] [stdout] 111 | | "SELECT * FROM courses where tutor_id = $1 and course_id = $2", [INFO] [stdout] 112 | | tutor_id, [INFO] [stdout] 113 | | course_id [INFO] [stdout] 114 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | let current_tutor_info = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 53 | | Tutor, [INFO] [stdout] 54 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 55 | | tutor_id, [INFO] [stdout] 56 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | / sqlx::query_as!( [INFO] [stdout] 163 | | Course, [INFO] [stdout] 164 | | "UPDATE courses set course_name = $1, course_description = $2, course_format = $3, [INFO] [stdout] 165 | | course_structure = $4, course_duration = $5, course_price = $6, course_language = $7, [INFO] [stdout] ... | [INFO] [stdout] 169 | | structure, duration, price, language,level, tutor_id, course_id [INFO] [stdout] 170 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 9 | | Tutor, [INFO] [stdout] 10 | | "SELECT * FROM tutors", [INFO] [stdout] 11 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 22 | | Tutor, [INFO] [stdout] 23 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 24 | | tutor_id, [INFO] [stdout] 25 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 69 | | Tutor, [INFO] [stdout] 70 | | "UPDATE tutors set tutor_name = $1, tutor_pic_url = $2, tutor_profile = $3 \ [INFO] [stdout] 71 | | WHERE tutor_id = $4 \ [INFO] [stdout] 72 | | RETURNING tutor_id, tutor_name, tutor_pic_url, tutor_profile", [INFO] [stdout] 73 | | new_info.tutor_name, new_info.tutor_pic_url, new_info.tutor_profile, new_info.tutor_id, [INFO] [stdout] 74 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(sqlx::query!( [INFO] [stdout] | ________^ [INFO] [stdout] 85 | | "DELETE FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 86 | | tutor_id, [INFO] [stdout] 87 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 36 | | Tutor, [INFO] [stdout] 37 | | "INSERT INTO tutors(tutor_id, tutor_name, tutor_pic_url, tutor_profile) \ [INFO] [stdout] 38 | | VALUES (DEFAULT, $1, $2, $3) RETURNING \ [INFO] [stdout] 39 | | tutor_id, tutor_name, tutor_pic_url, tutor_profile", [INFO] [stdout] 40 | | new_tutor.tutor_name, new_tutor.tutor_pic_url, new_tutor.tutor_profile, [INFO] [stdout] 41 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | let current_tutor_info = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 53 | | Tutor, [INFO] [stdout] 54 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 55 | | tutor_id, [INFO] [stdout] 56 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 69 | | Tutor, [INFO] [stdout] 70 | | "UPDATE tutors set tutor_name = $1, tutor_pic_url = $2, tutor_profile = $3 \ [INFO] [stdout] 71 | | WHERE tutor_id = $4 \ [INFO] [stdout] 72 | | RETURNING tutor_id, tutor_name, tutor_pic_url, tutor_profile", [INFO] [stdout] 73 | | new_info.tutor_name, new_info.tutor_pic_url, new_info.tutor_profile, new_info.tutor_id, [INFO] [stdout] 74 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(sqlx::query!( [INFO] [stdout] | ________^ [INFO] [stdout] 85 | | "DELETE FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 86 | | tutor_id, [INFO] [stdout] 87 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-app-ssr/src/dbaccess.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | let user_row = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 7 | | User, [INFO] [stdout] 8 | | "SELECT * FROM users where username = $1", [INFO] [stdout] 9 | | username [INFO] [stdout] 10 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-app-ssr/src/dbaccess.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | let user_row= sqlx::query_as!(User,"insert into users (username, tutor_id, user_password) values ($1,$2,$3) returning username, tutor... [INFO] [stdout] | ___________________^ [INFO] [stdout] 23 | | new_user.username, new_user.tutor_id, new_user.user_password) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-app-ssr/src/dbaccess.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | let user_row = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 7 | | User, [INFO] [stdout] 8 | | "SELECT * FROM users where username = $1", [INFO] [stdout] 9 | | username [INFO] [stdout] 10 | | ) [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: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> tutor-web-app-ssr/src/dbaccess.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | let user_row= sqlx::query_as!(User,"insert into users (username, tutor_id, user_password) values ($1,$2,$3) returning username, tutor... [INFO] [stdout] | ___________________^ [INFO] [stdout] 23 | | new_user.username, new_user.tutor_id, new_user.user_password) [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[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 110 | | Course, [INFO] [stdout] 111 | | "SELECT * FROM courses where tutor_id = $1 and course_id = $2", [INFO] [stdout] 112 | | tutor_id, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .fetch_one(pool) [INFO] [stdout] 116 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 9 | | Tutor, [INFO] [stdout] 10 | | "SELECT * FROM tutors", [INFO] [stdout] ... | [INFO] [stdout] 13 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 22 | | Tutor, [INFO] [stdout] 23 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 24 | | tutor_id, [INFO] [stdout] 25 | | ) [INFO] [stdout] 26 | | .fetch_one(pool) [INFO] [stdout] 27 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/course.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | let current_course_row = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 110 | | Course, [INFO] [stdout] 111 | | "SELECT * FROM courses where tutor_id = $1 and course_id = $2", [INFO] [stdout] 112 | | tutor_id, [INFO] [stdout] ... | [INFO] [stdout] 115 | | .fetch_one(pool) [INFO] [stdout] 116 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 36 | | Tutor, [INFO] [stdout] 37 | | "INSERT INTO tutors(tutor_id, tutor_name, tutor_pic_url, tutor_profile) \ [INFO] [stdout] 38 | | VALUES (DEFAULT, $1, $2, $3) RETURNING \ [INFO] [stdout] ... | [INFO] [stdout] 42 | | .fetch_one(pool) [INFO] [stdout] 43 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | let current_tutor_info = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 53 | | Tutor, [INFO] [stdout] 54 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 55 | | tutor_id, [INFO] [stdout] 56 | | ) [INFO] [stdout] 57 | | .fetch_one(pool) [INFO] [stdout] 58 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 9 | | Tutor, [INFO] [stdout] 10 | | "SELECT * FROM tutors", [INFO] [stdout] ... | [INFO] [stdout] 13 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 69 | | Tutor, [INFO] [stdout] 70 | | "UPDATE tutors set tutor_name = $1, tutor_pic_url = $2, tutor_profile = $3 \ [INFO] [stdout] 71 | | WHERE tutor_id = $4 \ [INFO] [stdout] ... | [INFO] [stdout] 75 | | .fetch_one(pool) [INFO] [stdout] 76 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 22 | | Tutor, [INFO] [stdout] 23 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 24 | | tutor_id, [INFO] [stdout] 25 | | ) [INFO] [stdout] 26 | | .fetch_one(pool) [INFO] [stdout] 27 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(sqlx::query!( [INFO] [stdout] | ________^ [INFO] [stdout] 85 | | "DELETE FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 86 | | tutor_id, [INFO] [stdout] ... | [INFO] [stdout] 89 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 36 | | Tutor, [INFO] [stdout] 37 | | "INSERT INTO tutors(tutor_id, tutor_name, tutor_pic_url, tutor_profile) \ [INFO] [stdout] 38 | | VALUES (DEFAULT, $1, $2, $3) RETURNING \ [INFO] [stdout] ... | [INFO] [stdout] 42 | | .fetch_one(pool) [INFO] [stdout] 43 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | let current_tutor_info = sqlx::query_as!( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 53 | | Tutor, [INFO] [stdout] 54 | | "SELECT * FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 55 | | tutor_id, [INFO] [stdout] 56 | | ) [INFO] [stdout] 57 | | .fetch_one(pool) [INFO] [stdout] 58 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(sqlx::query_as!( [INFO] [stdout] | ________^ [INFO] [stdout] 69 | | Tutor, [INFO] [stdout] 70 | | "UPDATE tutors set tutor_name = $1, tutor_pic_url = $2, tutor_profile = $3 \ [INFO] [stdout] 71 | | WHERE tutor_id = $4 \ [INFO] [stdout] ... | [INFO] [stdout] 75 | | .fetch_one(pool) [INFO] [stdout] 76 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tutor-web-service/src/./app/dbaccess/tutor.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(sqlx::query!( [INFO] [stdout] | ________^ [INFO] [stdout] 85 | | "DELETE FROM tutors WHERE tutor_id = $1", [INFO] [stdout] 86 | | tutor_id, [INFO] [stdout] ... | [INFO] [stdout] 89 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tutor-db` (bin "tutor-db") due to 19 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tutor-db` (bin "tutor-db" test) due to 19 previous errors [INFO] [stderr] error: could not compile `tutor-web-app-ssr` (bin "tutor-web-app-ssr" test) due to 2 previous errors [INFO] [stderr] error: could not compile `tutor-web-app-ssr` (bin "tutor-web-app-ssr") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "c430fdadc997dcf3a87cbd297d59300952149f84d051e3986be4914ef5d775fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c430fdadc997dcf3a87cbd297d59300952149f84d051e3986be4914ef5d775fd", kill_on_drop: false }` [INFO] [stdout] c430fdadc997dcf3a87cbd297d59300952149f84d051e3986be4914ef5d775fd