[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] checking rustnew/warp_simple_app against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustnew%2Fwarp_simple_app" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rustnew/warp_simple_app on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded yew-router v0.18.0 [INFO] [stderr] Downloaded boolinator v2.4.0 [INFO] [stderr] Downloaded yew-router-macro v0.18.0 [INFO] [stderr] Downloaded pinned v0.1.0 [INFO] [stderr] Downloaded gloo-worker v0.2.1 [INFO] [stderr] Downloaded gloo-net v0.3.1 [INFO] [stderr] Downloaded implicit-clone v0.4.9 [INFO] [stderr] Downloaded gloo-history v0.2.2 [INFO] [stderr] Downloaded metrics v0.23.0 [INFO] [stderr] Downloaded postgres-protocol v0.6.8 [INFO] [stderr] Downloaded postgres-types v0.2.9 [INFO] [stderr] Downloaded gloo-console v0.2.3 [INFO] [stderr] Downloaded yew-macro v0.21.0 [INFO] [stderr] Downloaded gloo v0.8.1 [INFO] [stderr] Downloaded yew v0.21.0 [INFO] [stderr] Downloaded mobc v0.8.5 [INFO] [stderr] Downloaded gloo-console v0.3.0 [INFO] [stderr] Downloaded gloo-dialogs v0.2.0 [INFO] [stderr] Downloaded gloo-file v0.3.0 [INFO] [stderr] Downloaded tokio-postgres v0.7.13 [INFO] [stderr] Downloaded gloo v0.10.0 [INFO] [stderr] Downloaded gloo-events v0.2.0 [INFO] [stderr] Downloaded gloo-net v0.4.0 [INFO] [stderr] Downloaded gloo-render v0.2.0 [INFO] [stderr] Downloaded gloo-storage v0.3.0 [INFO] [stderr] Downloaded gloo-worker-macros v0.1.0 [INFO] [stderr] Downloaded gloo-worker v0.4.0 [INFO] [stderr] Downloaded implicit-clone-derive v0.1.2 [INFO] [stderr] Downloaded gloo-dialogs v0.1.1 [INFO] [stderr] Downloaded gloo-file v0.2.3 [INFO] [stderr] Downloaded gloo-events v0.1.2 [INFO] [stderr] Downloaded gloo-history v0.1.5 [INFO] [stderr] Downloaded gloo-render v0.1.1 [INFO] [stderr] Downloaded gloo-storage v0.2.2 [INFO] [stderr] Downloaded anymap2 v0.13.0 [INFO] [stderr] Downloaded prokio v0.1.0 [INFO] [stderr] Downloaded mobc-postgres v0.8.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 98bab0a374dc1f43c3197ec14e247ecbc58f129c24fdab330b502b86630c4da2 [INFO] running `Command { std: "docker" "start" "-a" "98bab0a374dc1f43c3197ec14e247ecbc58f129c24fdab330b502b86630c4da2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "98bab0a374dc1f43c3197ec14e247ecbc58f129c24fdab330b502b86630c4da2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98bab0a374dc1f43c3197ec14e247ecbc58f129c24fdab330b502b86630c4da2", kill_on_drop: false }` [INFO] [stdout] 98bab0a374dc1f43c3197ec14e247ecbc58f129c24fdab330b502b86630c4da2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6ab08c3f8d8d6e13a5b58fa7fe6d24085272c92bbe72f00701e1b4f0f0aca77 [INFO] running `Command { std: "docker" "start" "-a" "d6ab08c3f8d8d6e13a5b58fa7fe6d24085272c92bbe72f00701e1b4f0f0aca77", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking once_cell v1.21.1 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking 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 lock_api v0.4.12 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling prettyplease v0.2.31 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking iana-time-zone v0.1.62 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking data-encoding v2.8.0 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking metrics v0.23.0 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking whoami v1.6.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking route-recognizer v0.3.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking postgres-protocol v0.6.8 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [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 tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling gloo-worker-macros v0.1.0 [INFO] [stderr] Compiling implicit-clone-derive v0.1.2 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Checking implicit-clone v0.4.9 [INFO] [stderr] Compiling yew-macro v0.21.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling yew-router-macro v0.18.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.44.1 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking js-sys v0.3.77 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking pinned v0.1.0 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking mobc v0.8.5 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking prokio v0.1.0 [INFO] [stderr] Checking web-sys v0.3.77 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.50 [INFO] [stderr] Checking gloo-timers v0.3.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde-wasm-bindgen v0.6.5 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Checking postgres-types v0.2.9 [INFO] [stderr] Checking tokio-postgres v0.7.13 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking mobc-postgres v0.8.0 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking gloo-utils v0.2.0 [INFO] [stderr] Checking gloo-events v0.2.0 [INFO] [stderr] Checking gloo-render v0.2.0 [INFO] [stderr] Checking gloo-dialogs v0.2.0 [INFO] [stderr] Checking gloo-net v0.4.0 [INFO] [stderr] Checking gloo-worker v0.4.0 [INFO] [stderr] Checking gloo-console v0.3.0 [INFO] [stderr] Checking gloo-storage v0.3.0 [INFO] [stderr] Checking gloo-history v0.2.2 [INFO] [stderr] Checking gloo-file v0.3.0 [INFO] [stderr] Checking gloo v0.10.0 [INFO] [stderr] Checking yew v0.21.0 [INFO] [stderr] Checking 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] [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] [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: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: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[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] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/cmp.rs:338:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Eq` defined here [INFO] [stdout] | [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] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/cmp.rs:338:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Eq` defined here [INFO] [stdout] | [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)]` 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[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] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/cmp.rs:338:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Eq` defined here [INFO] [stdout] | [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] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/cmp.rs:338:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Eq` defined here [INFO] [stdout] | [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)]` 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[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: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: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: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: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: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[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: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 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] 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] [stdout] Some errors have detailed explanations: E0061, E0107, E0412, E0425, E0433, E0782. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend" test) due to 37 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d6ab08c3f8d8d6e13a5b58fa7fe6d24085272c92bbe72f00701e1b4f0f0aca77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6ab08c3f8d8d6e13a5b58fa7fe6d24085272c92bbe72f00701e1b4f0f0aca77", kill_on_drop: false }` [INFO] [stdout] d6ab08c3f8d8d6e13a5b58fa7fe6d24085272c92bbe72f00701e1b4f0f0aca77