[INFO] cloning repository https://github.com/mardab/milestone1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mardab/milestone1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmardab%2Fmilestone1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmardab%2Fmilestone1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b26c7b312532d3a72201723f10e1b81caf984613 [INFO] checking mardab/milestone1 against master#39b841dfe36f90a7cd111e7f0c55f32594f6e578 for pr-77035 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmardab%2Fmilestone1" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mardab/milestone1 on toolchain 39b841dfe36f90a7cd111e7f0c55f32594f6e578 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mardab/milestone1 [INFO] finished tweaking git repo https://github.com/mardab/milestone1 [INFO] tweaked toml for git repo https://github.com/mardab/milestone1 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/mardab/milestone1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] fedfbc7baa3866284166b7dcef67faea611d42482a858b5219d74de12b5807d4 [INFO] running `Command { std: "docker" "start" "-a" "fedfbc7baa3866284166b7dcef67faea611d42482a858b5219d74de12b5807d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fedfbc7baa3866284166b7dcef67faea611d42482a858b5219d74de12b5807d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fedfbc7baa3866284166b7dcef67faea611d42482a858b5219d74de12b5807d4", kill_on_drop: false }` [INFO] [stdout] fedfbc7baa3866284166b7dcef67faea611d42482a858b5219d74de12b5807d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f11caff535b8966ddeec9e6a76b43b21fad2b06caf9efeb6eb43ee7d36366fd9 [INFO] running `Command { std: "docker" "start" "-a" "f11caff535b8966ddeec9e6a76b43b21fad2b06caf9efeb6eb43ee7d36366fd9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking copyless v0.1.5 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking pin-project-lite v0.2.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Compiling const_fn v0.4.3 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking humantime v2.0.1 [INFO] [stderr] Checking bytes v0.6.0 [INFO] [stderr] Compiling standback v0.2.13 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking bytestring v0.1.5 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling mysqlclient-sys v0.2.4 [INFO] [stderr] Checking encoding_rs v0.8.26 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.36 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking parking_lot_core v0.8.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking socket2 v0.3.17 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking addr2line v0.14.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking mime_guess v2.0.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tokio v0.2.23 [INFO] [stderr] Checking env_logger v0.8.2 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling dotenv_codegen_implementation v0.15.0 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix_derive v0.5.0 [INFO] [stderr] Checking dotenv_codegen v0.15.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking thiserror v1.0.22 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking diesel v1.4.5 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking trust-dns-proto v0.19.6 [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 actix-testing v1.0.1 [INFO] [stderr] Checking trust-dns-resolver v0.19.6 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking actix v0.10.0 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking actix-router v0.2.5 [INFO] [stderr] Checking alcoholic_jwt v1.0.0 [INFO] [stderr] Checking actix-http v2.2.0 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Checking awc v2.0.3 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.9 [INFO] [stderr] Checking actix-web v3.3.2 [INFO] [stderr] Checking actix-web-httpauth v0.5.0 [INFO] [stderr] Checking milestone1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find attribute `delete` in this scope [INFO] [stdout] --> src/main.rs:68:3 [INFO] [stdout] | [INFO] [stdout] 68 | #[delete("/list")] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/main.rs:44:41 [INFO] [stdout] | [INFO] [stdout] 44 | async fn get_items(MysqlPool: web::Data) -> Result, diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^^ non-constant value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delete` in this scope [INFO] [stdout] --> src/main.rs:68:3 [INFO] [stdout] | [INFO] [stdout] 68 | #[delete("/list")] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `db` [INFO] [stdout] --> src/main.rs:38:51 [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | ^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Products` in this scope [INFO] [stdout] --> src/main.rs:44:67 [INFO] [stdout] | [INFO] [stdout] 44 | async fn get_items(MysqlPool: web::Data) -> Result, diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Products` in this scope [INFO] [stdout] --> src/main.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | let items_list = Products.load::(&conn)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Product` in this scope [INFO] [stdout] --> src/main.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | let items_list = Products.load::(&conn)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::iter::Product; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::product::Product; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Product; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | async fn add_product(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 51 | async fn add_product(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InputProduct` in this scope [INFO] [stdout] --> src/main.rs:51:58 [INFO] [stdout] | [INFO] [stdout] 51 | async fn add_product(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | - ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:58:40 [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InputProduct` in this scope [INFO] [stdout] --> src/main.rs:58:62 [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | - ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Products` in this scope [INFO] [stdout] --> src/main.rs:58:88 [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NewProduct` in this scope [INFO] [stdout] --> src/main.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | let new_product = NewProduct { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stdout] --> src/main.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | let res = insert_into(Products).values(&new_product).get_result(&conn)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::functions::insert_into; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::insert_into; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Products` in this scope [INFO] [stdout] --> src/main.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let res = insert_into(Products).values(&new_product).get_result(&conn)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | async fn delete_product(db: web::Data,product_id: web::Path,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 69 | async fn delete_product(db: web::Data,product_id: web::Path,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:78:43 [INFO] [stdout] | [INFO] [stdout] 78 | async fn delete_single_item(db: web::Data, product_id: i32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 78 | async fn delete_single_item(db: web::Data, product_id: i32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delete` in this scope [INFO] [stdout] --> src/main.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let count = delete(Products.find(product_id)).execute(&conn)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::web::delete; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::web::delete; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::delete; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Products` in this scope [INFO] [stdout] --> src/main.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | let count = delete(Products.find(product_id)).execute(&conn)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dev::ServiceRequest` [INFO] [stdout] --> src/main.rs:1:75 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder, dev::ServiceRequest, Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::middleware::Logger` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::middleware::Logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::connect` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use db::connect; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::Products` [INFO] [stdout] --> src/product.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema::Products; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDateTime` [INFO] [stdout] --> src/product.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::NaiveDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::Product` [INFO] [stdout] --> src/products.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::product::Product; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/products.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/main.rs:44:41 [INFO] [stdout] | [INFO] [stdout] 44 | async fn get_items(MysqlPool: web::Data) -> Result, diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^^ non-constant value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `db` [INFO] [stdout] --> src/main.rs:38:51 [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | ^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Products` in this scope [INFO] [stdout] --> src/main.rs:44:67 [INFO] [stdout] | [INFO] [stdout] 44 | async fn get_items(MysqlPool: web::Data) -> Result, diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Products` in this scope [INFO] [stdout] --> src/main.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | let items_list = Products.load::(&conn)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Product` in this scope [INFO] [stdout] --> src/main.rs:46:38 [INFO] [stdout] | [INFO] [stdout] 46 | let items_list = Products.load::(&conn)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::iter::Product; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::product::Product; [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Product; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:51:36 [INFO] [stdout] | [INFO] [stdout] 51 | async fn add_product(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 51 | async fn add_product(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InputProduct` in this scope [INFO] [stdout] --> src/main.rs:51:58 [INFO] [stdout] | [INFO] [stdout] 51 | async fn add_product(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | - ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:58:40 [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `InputProduct` in this scope [INFO] [stdout] --> src/main.rs:58:62 [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | - ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Products` in this scope [INFO] [stdout] --> src/main.rs:58:88 [INFO] [stdout] | [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NewProduct` in this scope [INFO] [stdout] --> src/main.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | let new_product = NewProduct { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `insert_into` in this scope [INFO] [stdout] --> src/main.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | let res = insert_into(Products).values(&new_product).get_result(&conn)?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::functions::insert_into; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::insert_into; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Products` in this scope [INFO] [stdout] --> src/main.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let res = insert_into(Products).values(&new_product).get_result(&conn)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:69:39 [INFO] [stdout] | [INFO] [stdout] 69 | async fn delete_product(db: web::Data,product_id: web::Path,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 69 | async fn delete_product(db: web::Data,product_id: web::Path,) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/main.rs:78:43 [INFO] [stdout] | [INFO] [stdout] 78 | async fn delete_single_item(db: web::Data, product_id: i32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 78 | async fn delete_single_item(db: web::Data, product_id: i32) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::Pool; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::r2d2::Pool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delete` in this scope [INFO] [stdout] --> src/main.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let count = delete(Products.find(product_id)).execute(&conn)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::web::delete; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::web::delete; [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::delete; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Products` in this scope [INFO] [stdout] --> src/main.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | let count = delete(Products.find(product_id)).execute(&conn)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::Products::dsl::Products; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dev::ServiceRequest` [INFO] [stdout] --> src/main.rs:1:75 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder, dev::ServiceRequest, Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::middleware::Logger` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::middleware::Logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::connect` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use db::connect; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::Products` [INFO] [stdout] --> src/product.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema::Products; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDateTime` [INFO] [stdout] --> src/product.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::NaiveDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::Product` [INFO] [stdout] --> src/products.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::product::Product; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/products.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | _____^^^^^^^^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | expected 0 arguments [INFO] [stdout] 39 | | .await [INFO] [stdout] 40 | | .map(|Products| HttpResponse::Ok().json(Products)) [INFO] [stdout] 41 | | .map_err(|_| HttpResponse::InternalServerError())?) [INFO] [stdout] | |______________________________________________________- supplied 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | _____^^^^^^^^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | expected 0 arguments [INFO] [stdout] 39 | | .await [INFO] [stdout] 40 | | .map(|Products| HttpResponse::Ok().json(Products)) [INFO] [stdout] 41 | | .map_err(|_| HttpResponse::InternalServerError())?) [INFO] [stdout] | |______________________________________________________- supplied 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | ^^^^^^^^^^^^^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] ... [INFO] [stdout] 44 | async fn get_items(MysqlPool: web::Data) -> Result, diesel::result::Error> { [INFO] [stdout] | -------------------------------------------- the `Output` of this `async fn`'s found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<_, _>` [INFO] [stdout] found opaque type `impl std::future::Future` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || Ok(get_items(db))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || Err(get_items(db))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/main.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 37 | async fn list_all() -> impl Responder{ [INFO] [stdout] | ______________________________________- [INFO] [stdout] 38 | | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | |______________________^ [INFO] [stdout] 39 | || .await [INFO] [stdout] 40 | || .map(|Products| HttpResponse::Ok().json(Products)) [INFO] [stdout] 41 | || .map_err(|_| HttpResponse::InternalServerError())?) [INFO] [stdout] | ||______________________________________________________^ cannot use the `?` operator in an async function that returns `HttpResponseBuilder` [INFO] [stdout] 42 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `HttpResponseBuilder` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 41 | .map_err(|_| HttpResponse::InternalServerError()).await?) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:41 [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | ^^^^^^^^^^^^^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] ... [INFO] [stdout] 44 | async fn get_items(MysqlPool: web::Data) -> Result, diesel::result::Error> { [INFO] [stdout] | -------------------------------------------- the `Output` of this `async fn`'s found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<_, _>` [INFO] [stdout] found opaque type `impl std::future::Future` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || Ok(get_items(db))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | HttpResponse::Ok(web::block(move || Err(get_items(db))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `Try`) [INFO] [stdout] --> src/main.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 37 | async fn list_all() -> impl Responder{ [INFO] [stdout] | ______________________________________- [INFO] [stdout] 38 | | HttpResponse::Ok(web::block(move || get_items(db)) [INFO] [stdout] | |______________________^ [INFO] [stdout] 39 | || .await [INFO] [stdout] 40 | || .map(|Products| HttpResponse::Ok().json(Products)) [INFO] [stdout] 41 | || .map_err(|_| HttpResponse::InternalServerError())?) [INFO] [stdout] | ||______________________________________________________^ cannot use the `?` operator in an async function that returns `HttpResponseBuilder` [INFO] [stdout] 42 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `HttpResponseBuilder` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] help: consider `await`ing on the `Future` [INFO] [stdout] | [INFO] [stdout] 41 | .map_err(|_| HttpResponse::InternalServerError()).await?) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | Ok(web::block(move || add_single_item(db, item)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] ... [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | --------------------------------------- the `Output` of this `async fn`'s found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<_, _>` [INFO] [stdout] found opaque type `impl std::future::Future` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 52 | Ok(web::block(move || Ok(add_single_item(db, item))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | Ok(web::block(move || Err(add_single_item(db, item))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | web::block(move || delete_single_item(db, product_id.into_inner())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] ... [INFO] [stdout] 78 | async fn delete_single_item(db: web::Data, product_id: i32) -> Result { [INFO] [stdout] | ------------------------------------ the `Output` of this `async fn`'s found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<_, _>` [INFO] [stdout] found opaque type `impl std::future::Future` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 71 | web::block(move || Ok(delete_single_item(db, product_id.into_inner()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | web::block(move || Err(delete_single_item(db, product_id.into_inner()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(actix_web::web::Data<[type error]>, actix_web::web::Path) -> impl std::future::Future {delete_product}: HttpServiceFactory` is not satisfied [INFO] [stdout] --> src/main.rs:26:88 [INFO] [stdout] | [INFO] [stdout] 26 | .service(web::scope("/api").service(list_all).service(add_product).service(delete_product)) [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `HttpServiceFactory` is not implemented for `fn(actix_web::web::Data<[type error]>, actix_web::web::Path) -> impl std::future::Future {delete_product}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `table: Queryable<(diesel::sql_types::Unsigned, diesel::sql_types::Text, diesel::sql_types::Numeric), _>` is not satisfied [INFO] [stdout] --> src/product.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | .load::(connection) [INFO] [stdout] | ^^^^ the trait `Queryable<(diesel::sql_types::Unsigned, diesel::sql_types::Text, diesel::sql_types::Numeric), _>` is not implemented for `table` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `LoadQuery<_, table>` for `diesel::query_builder::SelectStatement>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | Ok(web::block(move || add_single_item(db, item)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] ... [INFO] [stdout] 58 | async fn add_single_item(db: web::Data,item: web::Json,) -> Result { [INFO] [stdout] | --------------------------------------- the `Output` of this `async fn`'s found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<_, _>` [INFO] [stdout] found opaque type `impl std::future::Future` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 52 | Ok(web::block(move || Ok(add_single_item(db, item))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | Ok(web::block(move || Err(add_single_item(db, item))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/product.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | ProductList(result) [INFO] [stdout] | ^^^^^^ expected struct `product::Product`, found struct `table` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 26 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0412, E0422, E0423, E0425, E0435. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `milestone1` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | web::block(move || delete_single_item(db, product_id.into_inner())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] ... [INFO] [stdout] 78 | async fn delete_single_item(db: web::Data, product_id: i32) -> Result { [INFO] [stdout] | ------------------------------------ the `Output` of this `async fn`'s found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<_, _>` [INFO] [stdout] found opaque type `impl std::future::Future` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 71 | web::block(move || Ok(delete_single_item(db, product_id.into_inner()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | web::block(move || Err(delete_single_item(db, product_id.into_inner()))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(actix_web::web::Data<[type error]>, actix_web::web::Path) -> impl std::future::Future {delete_product}: HttpServiceFactory` is not satisfied [INFO] [stdout] --> src/main.rs:26:88 [INFO] [stdout] | [INFO] [stdout] 26 | .service(web::scope("/api").service(list_all).service(add_product).service(delete_product)) [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `HttpServiceFactory` is not implemented for `fn(actix_web::web::Data<[type error]>, actix_web::web::Path) -> impl std::future::Future {delete_product}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `table: Queryable<(diesel::sql_types::Unsigned, diesel::sql_types::Text, diesel::sql_types::Numeric), _>` is not satisfied [INFO] [stdout] --> src/product.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | .load::(connection) [INFO] [stdout] | ^^^^ the trait `Queryable<(diesel::sql_types::Unsigned, diesel::sql_types::Text, diesel::sql_types::Numeric), _>` is not implemented for `table` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `LoadQuery<_, table>` for `diesel::query_builder::SelectStatement>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/product.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | ProductList(result) [INFO] [stdout] | ^^^^^^ expected struct `product::Product`, found struct `table` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec
` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 26 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0412, E0422, E0423, E0425, E0435. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f11caff535b8966ddeec9e6a76b43b21fad2b06caf9efeb6eb43ee7d36366fd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f11caff535b8966ddeec9e6a76b43b21fad2b06caf9efeb6eb43ee7d36366fd9", kill_on_drop: false }` [INFO] [stdout] f11caff535b8966ddeec9e6a76b43b21fad2b06caf9efeb6eb43ee7d36366fd9