[INFO] cloning repository https://github.com/rustnew/warp_simple_app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rustnew/warp_simple_app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustnew%2Fwarp_simple_app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustnew%2Fwarp_simple_app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9ca971ef40e5159637211ae9e9ba153de21989a3 [INFO] testing rustnew/warp_simple_app/9ca971ef40e5159637211ae9e9ba153de21989a3 against master#e9385f9eea0221ef295a188d49d16f8f5189abf1 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustnew%2Fwarp_simple_app" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rustnew/warp_simple_app [INFO] finished tweaking git repo https://github.com/rustnew/warp_simple_app [INFO] tweaked toml for git repo https://github.com/rustnew/warp_simple_app written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rustnew/warp_simple_app on toolchain e9385f9eea0221ef295a188d49d16f8f5189abf1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rustnew/warp_simple_app 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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded implicit-clone-derive v0.1.2 [INFO] [stderr] Downloaded zerocopy-derive v0.8.24 [INFO] [stderr] Downloaded mobc-postgres v0.8.0 [INFO] [stderr] Downloaded data-encoding v2.8.0 [INFO] [stderr] Downloaded phf v0.11.3 [INFO] [stderr] Downloaded phf_shared v0.11.3 [INFO] [stderr] Downloaded once_cell v1.21.1 [INFO] [stderr] Downloaded postgres-protocol v0.6.8 [INFO] [stderr] Downloaded postgres-types v0.2.9 [INFO] [stderr] Downloaded iana-time-zone v0.1.62 [INFO] [stderr] Downloaded metrics v0.23.0 [INFO] [stderr] Downloaded mobc v0.8.5 [INFO] [stderr] Downloaded getrandom v0.3.2 [INFO] [stderr] Downloaded whoami v1.6.0 [INFO] [stderr] Downloaded prettyplease v0.2.31 [INFO] [stderr] Downloaded tokio-postgres v0.7.13 [INFO] [stderr] Downloaded cc v1.2.17 [INFO] [stderr] Downloaded tokio-util v0.7.14 [INFO] [stderr] Downloaded indexmap v2.8.0 [INFO] [stderr] Downloaded zerocopy v0.8.24 [INFO] [stderr] Downloaded libc v0.2.171 [INFO] [stderr] Downloaded tokio v1.44.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f0b84d21e29f06a9a946d199f95098f182e99add17070646bf14a552140ffd2 [INFO] running `Command { std: "docker" "start" "-a" "4f0b84d21e29f06a9a946d199f95098f182e99add17070646bf14a552140ffd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f0b84d21e29f06a9a946d199f95098f182e99add17070646bf14a552140ffd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f0b84d21e29f06a9a946d199f95098f182e99add17070646bf14a552140ffd2", kill_on_drop: false }` [INFO] [stdout] 4f0b84d21e29f06a9a946d199f95098f182e99add17070646bf14a552140ffd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d93fb2a7b315393d2704ad78e6a7e6ec9db5f38c883d457fc50a5003f4b35ddc [INFO] running `Command { std: "docker" "start" "-a" "d93fb2a7b315393d2704ad78e6a7e6ec9db5f38c883d457fc50a5003f4b35ddc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling prettyplease v0.2.31 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling iana-time-zone v0.1.62 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling metrics v0.23.0 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling route-recognizer v0.3.1 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling postgres-protocol v0.6.8 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling implicit-clone-derive v0.1.2 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling implicit-clone v0.4.9 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling yew-router-macro v0.18.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling yew-macro v0.21.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling gloo-worker-macros v0.1.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling pinned v0.1.0 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling mobc v0.8.5 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling prokio v0.1.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.50 [INFO] [stderr] Compiling serde-wasm-bindgen v0.6.5 [INFO] [stderr] Compiling gloo-timers v0.3.0 [INFO] [stderr] Compiling postgres-types v0.2.9 [INFO] [stderr] Compiling tokio-postgres v0.7.13 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling mobc-postgres v0.8.0 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling gloo-utils v0.2.0 [INFO] [stderr] Compiling gloo-events v0.2.0 [INFO] [stderr] Compiling gloo-render v0.2.0 [INFO] [stderr] Compiling gloo-dialogs v0.2.0 [INFO] [stderr] Compiling gloo-net v0.4.0 [INFO] [stderr] Compiling gloo-storage v0.3.0 [INFO] [stderr] Compiling gloo-worker v0.4.0 [INFO] [stderr] Compiling gloo-console v0.3.0 [INFO] [stderr] Compiling gloo-file v0.3.0 [INFO] [stderr] Compiling gloo-history v0.2.2 [INFO] [stderr] Compiling gloo v0.10.0 [INFO] [stderr] Compiling yew v0.21.0 [INFO] [stderr] Compiling yew-router v0.18.0 [INFO] [stderr] Compiling backend v0.1.0 (/opt/rustwide/workdir/backend) [INFO] [stdout] error: expected `;`, found `Ok` [INFO] [stdout] --> backend/src/handler.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | ))) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 57 | [INFO] [stdout] 58 | Ok(json()) [INFO] [stdout] | -- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling frontend v0.1.0 (/opt/rustwide/workdir/frontend) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `db` [INFO] [stdout] --> backend/src/handler.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let pets = db::pet::fetch(&db_pool, owner_id) [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `db` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file backend/src/db/mod.rs, use `mod db` in this file to declare the module [INFO] [stdout] --> backend/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + mod db; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `db` [INFO] [stdout] --> backend/src/handler.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | db::pet::create(&db_pool, owner_id, body) [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `db` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file backend/src/db/mod.rs, use `mod db` in this file to declare the module [INFO] [stdout] --> backend/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + mod db; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `db` [INFO] [stdout] --> backend/src/handler.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | db::pet::delete(&db_pool, owner_id, id) [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `db` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file backend/src/db/mod.rs, use `mod db` in this file to declare the module [INFO] [stdout] --> backend/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + mod db; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `db` [INFO] [stdout] --> backend/src/handler.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | let owners = db::owner::fetch(&db_pool).await.map_err(reject::custom)?; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `db` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file backend/src/db/mod.rs, use `mod db` in this file to declare the module [INFO] [stdout] --> backend/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + mod db; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `db` [INFO] [stdout] --> backend/src/handler.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let owner = db::owner::fetch_one(&db_pool, id) [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `db` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file backend/src/db/mod.rs, use `mod db` in this file to declare the module [INFO] [stdout] --> backend/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 + mod db; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DBInitError` in this scope [INFO] [stdout] --> backend/src/db/mod.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | .map_err(DBInitError)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DBPoolError` in this scope [INFO] [stdout] --> backend/src/db/mod.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | db_pool.get().await.map_err(DBPoolError) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `E` in this scope [INFO] [stdout] --> backend/src/handler.rs:37:80 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn list_owners_handler(db_pool: DBPool) -> Result { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/cmp.rs:338:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Eq` defined here [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn list_owners_handler(db_pool: DBPool) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn list_owners_handler(db_pool: DBPool) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `E` in this scope [INFO] [stdout] --> backend/src/handler.rs:51:101 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn create_owner_handler(body: OwnerRequest, db_pool: DBPool) -> Result { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/e9385f9eea0221ef295a188d49d16f8f5189abf1/library/core/src/cmp.rs:338:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Eq` defined here [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn create_owner_handler(body: OwnerRequest, db_pool: DBPool) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn create_owner_handler(body: OwnerRequest, db_pool: DBPool) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `handle_rejection` in module `error` [INFO] [stdout] --> backend/src/main.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | .recover(error::handle_rejection) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warp::body::json` [INFO] [stdout] --> backend/src/db/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use warp::body::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `common::PetRequest` [INFO] [stdout] --> backend/src/db/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use common::PetRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgConnectionManager` [INFO] [stdout] --> backend/src/handler.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use mobc_postgres::{tokio_postgres::NoTls, PgConnectionManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> backend/src/db/mod.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 12 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 12 | type Result = std::result::Result; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for type alias `DBCon` [INFO] [stdout] --> backend/src/db/mod.rs:28:60 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn get_db_con(db_pool: &DBPool) -> Result { [INFO] [stdout] | ^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `NoTls` [INFO] [stdout] --> backend/src/main.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | type DBCon = Connection>; [INFO] [stdout] | ^^^^^ ----- [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn get_db_con(db_pool: &DBPool) -> Result> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> backend/src/handler.rs:9:96 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn list_pets_handler(owner_id: i32, db_pool: DBPool) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn list_pets_handler(owner_id: i32, db_pool: DBPool) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> backend/src/handler.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | ) -> Result { [INFO] [stdout] | ^^^^^^ ---------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 22 | ) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> backend/src/handler.rs:30:84 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn delete_pet_handler(owner_id: i32, id: i32, db_pool: DBPool) -> Result { [INFO] [stdout] | ^^^^^^ ---------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn delete_pet_handler(owner_id: i32, id: i32, db_pool: DBPool) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> backend/src/handler.rs:44:70 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn fetch_owner_handler(id: i32, db_pool: DBPool) -> Result { [INFO] [stdout] | ^^^^^^ ---------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn fetch_owner_handler(id: i32, db_pool: DBPool) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> backend/src/handler.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(json::>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 14 | &pets.into_iter().map(PetResponse::of).collect(), [INFO] [stdout] | ------------------------------------------------ unexpected argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/warp-0.3.7/src/filters/body.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn json() -> impl Filter + Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 14 - &pets.into_iter().map(PetResponse::of).collect(), [INFO] [stdout] 15 - )) [INFO] [stdout] 14 + )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> backend/src/handler.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(json(&PetResponse::of( [INFO] [stdout] | ________^^^^_- [INFO] [stdout] 24 | | db::pet::create(&db_pool, owner_id, body) [INFO] [stdout] 25 | | .await [INFO] [stdout] 26 | | .map_err(reject::custom)?, [INFO] [stdout] 27 | | ))) [INFO] [stdout] | |_____- unexpected argument of type `&PetResponse` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/warp-0.3.7/src/filters/body.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn json() -> impl Filter + Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 23 - Ok(json(&PetResponse::of( [INFO] [stdout] 24 - db::pet::create(&db_pool, owner_id, body) [INFO] [stdout] 25 - .await [INFO] [stdout] 26 - .map_err(reject::custom)?, [INFO] [stdout] 27 - ))) [INFO] [stdout] 23 + Ok(json()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> backend/src/handler.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | Ok(StatusCode::OK) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> backend/src/handler.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | Ok(json::>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 40 | &owners.into_iter().map(PetResponse::of).collect(), [INFO] [stdout] | -------------------------------------------------- unexpected argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/warp-0.3.7/src/filters/body.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn json() -> impl Filter + Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 40 - &owners.into_iter().map(PetResponse::of).collect(), [INFO] [stdout] 41 - )) [INFO] [stdout] 40 + )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> backend/src/handler.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | Ok(json(&PetResponse::of(owner))) [INFO] [stdout] | ^^^^ ----------------------- unexpected argument of type `&PetResponse` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/warp-0.3.7/src/filters/body.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | pub fn json() -> impl Filter + Copy { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 48 - Ok(json(&PetResponse::of(owner))) [INFO] [stdout] 48 + Ok(json()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> backend/src/db/mod.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | let config = Config::from_str("postgres://postgres@127.0.0.1:7878/postgres")?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_db` in this scope [INFO] [stdout] --> backend/src/main.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | .and(with_db(db_pool.clone())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_db` in this scope [INFO] [stdout] --> backend/src/main.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | .and(with_db(db_pool.clone())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_db` in this scope [INFO] [stdout] --> backend/src/main.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | .and(with_db(db_pool.clone())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_db` in this scope [INFO] [stdout] --> backend/src/main.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | .and(with_db(db_pool.clone())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_db` in this scope [INFO] [stdout] --> backend/src/main.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | .and(with_db(db_pool.clone())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_db` in this scope [INFO] [stdout] --> backend/src/main.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 52 | .and(with_db(db_pool.clone())) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> backend/src/main.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | Method::OPTIONS, [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> backend/src/main.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | Method::GET, [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> backend/src/main.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | Method::POST, [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> backend/src/main.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | Method::DELETE, [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> backend/src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | Method::PUT, [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `header` [INFO] [stdout] --> backend/src/main.rs:68:37 [INFO] [stdout] | [INFO] [stdout] 68 | .allow_headers(vec![header::CONTENT_TYPE, header::ACCEPT]) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `header` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `header`, use `cargo add header` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `header` [INFO] [stdout] --> backend/src/main.rs:68:59 [INFO] [stdout] | [INFO] [stdout] 68 | .allow_headers(vec![header::CONTENT_TYPE, header::ACCEPT]) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `header` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `header`, use `cargo add header` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `header` [INFO] [stdout] --> backend/src/main.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 69 | .expose_headers(vec![header::LINK]) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `header` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `header`, use `cargo add header` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0107, E0412, E0425, E0433, E0782. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend") due to 37 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d93fb2a7b315393d2704ad78e6a7e6ec9db5f38c883d457fc50a5003f4b35ddc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d93fb2a7b315393d2704ad78e6a7e6ec9db5f38c883d457fc50a5003f4b35ddc", kill_on_drop: false }` [INFO] [stdout] d93fb2a7b315393d2704ad78e6a7e6ec9db5f38c883d457fc50a5003f4b35ddc