[INFO] cloning repository https://github.com/tattoo1880/rust_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tattoo1880/rust_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftattoo1880%2Frust_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftattoo1880%2Frust_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 36432f441ec7777b9b4cd700877316aa442fff70 [INFO] testing tattoo1880/rust_api against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftattoo1880%2Frust_api" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tattoo1880/rust_api [INFO] finished tweaking git repo https://github.com/tattoo1880/rust_api [INFO] tweaked toml for git repo https://github.com/tattoo1880/rust_api written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tattoo1880/rust_api on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tattoo1880/rust_api 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70a18206c8526dc54ea64b17a554c43174b219aa26d4795d17bb561137fa6b8b [INFO] running `Command { std: "docker" "start" "-a" "70a18206c8526dc54ea64b17a554c43174b219aa26d4795d17bb561137fa6b8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70a18206c8526dc54ea64b17a554c43174b219aa26d4795d17bb561137fa6b8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70a18206c8526dc54ea64b17a554c43174b219aa26d4795d17bb561137fa6b8b", kill_on_drop: false }` [INFO] [stdout] 70a18206c8526dc54ea64b17a554c43174b219aa26d4795d17bb561137fa6b8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39585aac060954b9738aac9221565199832832557272c5a43747faa16a1f4fe1 [INFO] running `Command { std: "docker" "start" "-a" "39585aac060954b9738aac9221565199832832557272c5a43747faa16a1f4fe1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling pin-project-internal v0.4.30 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling const_fn v0.4.10 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling brotli-decompressor v2.5.1 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling object v0.36.5 [INFO] [stderr] Compiling ucd-util v0.1.10 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling syntex_fmt_macros v0.5.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling brotli v3.5.0 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling listenfd v0.3.5 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling derive-error-chain v0.11.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling pin-project v0.4.30 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling backtrace v0.3.74 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling error-chain v0.11.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling dotenv v0.11.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling pin-project v1.1.7 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling dsl_auto_type v0.1.2 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling diesel_derives v2.2.3 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling uuid v0.6.5 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling diesel v2.2.6 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling migrations_internals v2.2.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling migrations_macros v2.2.0 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling actix-http v2.2.2 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.3 [INFO] [stderr] Compiling diesel_migrations v2.2.0 [INFO] [stderr] Compiling rust_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/db.rs:15:44 [INFO] [stdout] | [INFO] [stdout] 15 | pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Failed to receive migrations dir from None [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: #[table_name] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(table_name = employees)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[table_name] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(table_name = employees)]` instead [INFO] [stderr] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{web, App, HttpServer}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/employees/routes.rs:28:55 [INFO] [stdout] | [INFO] [stdout] 28 | let employee = Employees::update(id.into_inner(), employee.into_inner())?; [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^^^^^^^^^ expected `Employees`, found `Employee` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/employees/models.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn update(id: i32, employee: Employees) -> Result { [INFO] [stdout] | ^^^^^^ ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `employeess` [INFO] [stdout] --> src/employees/models.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Employees { [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `employeess` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `employeess`, use `cargo add employeess` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(Integer, Text, Text, Text, Integer, Integer): CompatibleType<..., _>` is not satisfied [INFO] [stdout] --> src/employees/models.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | let employees = employees::table.load::(&conn)?; [INFO] [stdout] | ---- ^^^^^ the trait `load_dsl::private::CompatibleType` is not implemented for `(Integer, Text, Text, Text, Integer, Integer)` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: this is a mismatch between what your query returns and what your type expects the query to return [INFO] [stdout] = note: the fields in your struct need to match the fields returned by your query in count, order and type [INFO] [stdout] = note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]` [INFO] [stdout] on your struct `models::Employee` and in your query `.select(models::Employee::as_select())` to get a better error message [INFO] [stdout] = help: the following other types implement trait `load_dsl::private::CompatibleType`: [INFO] [stdout] (ST0, ST1) [INFO] [stdout] (ST0, ST1, ST2) [INFO] [stdout] (ST0, ST1, ST2, ST3) [INFO] [stdout] (ST0, ST1, ST2, ST3, ST4) [INFO] [stdout] (ST0, ST1, ST2, ST3, ST4, ST5) [INFO] [stdout] (ST0, ST1, ST2, ST3, ST4, ST5, ST6) [INFO] [stdout] (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7) [INFO] [stdout] (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8) [INFO] [stdout] and 24 others [INFO] [stdout] = note: required for `table` to implement `LoadQuery<'_, _, models::Employee>` [INFO] [stdout] note: required by a bound in `diesel::RunQueryDsl::load` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1542:15 [INFO] [stdout] | [INFO] [stdout] 1540 | fn load<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] 1541 | where [INFO] [stdout] 1542 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::load` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/rust_api-baf220df40788ead.long-type-1311635890818993637.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `models::Employee: FromSqlRow<_, _>` is not satisfied [INFO] [stdout] --> src/employees/models.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | let employees = employees::table.load::(&conn)?; [INFO] [stdout] | ---- ^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `FromSqlRow<_, _>` is not implemented for `models::Employee` [INFO] [stdout] --> src/employees/models.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Employee { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: double check your type mappings via the documentation of `_` [INFO] [stdout] = note: `diesel::sql_query` requires the loading target to column names for loading values. [INFO] [stdout] You need to provide a type that explicitly derives `diesel::deserialize::QueryableByName` [INFO] [stdout] = help: the following other types implement trait `FromSqlRow`: [INFO] [stdout] `(T1, T0)` implements `FromSqlRow<(ST1, Untyped), __DB>` [INFO] [stdout] `(T1, T2, T0)` implements `FromSqlRow<(ST1, ST2, Untyped), __DB>` [INFO] [stdout] `(T1, T2, T3, T0)` implements `FromSqlRow<(ST1, ST2, ST3, Untyped), __DB>` [INFO] [stdout] `(T1, T2, T3, T4, T0)` implements `FromSqlRow<(ST1, ST2, ST3, ST4, Untyped), __DB>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T0)` implements `FromSqlRow<(ST1, ST2, ST3, ST4, ST5, Untyped), __DB>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T0)` implements `FromSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, Untyped), __DB>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T0)` implements `FromSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, ST7, Untyped), __DB>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8, T0)` implements `FromSqlRow<(ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, Untyped), __DB>` [INFO] [stdout] and 23 others [INFO] [stdout] = note: required for `table` to implement `LoadQuery<'_, _, models::Employee>` [INFO] [stdout] note: required by a bound in `diesel::RunQueryDsl::load` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1542:15 [INFO] [stdout] | [INFO] [stdout] 1540 | fn load<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] 1541 | where [INFO] [stdout] 1542 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::load` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/rust_api-baf220df40788ead.long-type-2063507653451174330.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/employees/models.rs:28:59 [INFO] [stdout] | [INFO] [stdout] 28 | let employees = employees::table.load::(&conn)?; [INFO] [stdout] | ---------------- ^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&PooledConnection>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1540:8 [INFO] [stdout] | [INFO] [stdout] 1540 | fn load<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/employees/models.rs:34:76 [INFO] [stdout] | [INFO] [stdout] 34 | let employee = employees::table.filter(employees::id.eq(id)).first(&conn)?; [INFO] [stdout] | ----- ^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&PooledConnection>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1776:8 [INFO] [stdout] | [INFO] [stdout] 1776 | fn first<'query, U>(self, conn: &mut Conn) -> QueryResult [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Employee: Queryable<(Integer, Text, Text, Text, Integer, Integer), _>` is not satisfied [INFO] [stdout] --> src/employees/models.rs:34:76 [INFO] [stdout] | [INFO] [stdout] 34 | let employee = employees::table.filter(employees::id.eq(id)).first(&conn)?; [INFO] [stdout] | ----- ^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `Queryable<(Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Text, Integer, Integer), _>` is not implemented for `models::Employee` [INFO] [stdout] --> src/employees/models.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Employee { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Queryable`: [INFO] [stdout] `(T0, T1)` implements `Queryable<(ST0, ST1), __DB>` [INFO] [stdout] `(T0, T1)` implements `Queryable, Pg>` [INFO] [stdout] `(T0, T1, T2)` implements `Queryable<(ST0, ST1, ST2), __DB>` [INFO] [stdout] `(T0, T1, T2)` implements `Queryable, Pg>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `Queryable<(ST0, ST1, ST2, ST3), __DB>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `Queryable, Pg>` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `Queryable<(ST0, ST1, ST2, ST3, ST4), __DB>` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `Queryable, Pg>` [INFO] [stdout] and 122 others [INFO] [stdout] = note: required for `models::Employee` to implement `FromSqlRow<(Integer, Text, Text, Text, Integer, Integer), _>` [INFO] [stdout] = note: required for `(Integer, Text, Text, Text, Integer, Integer)` to implement `load_dsl::private::CompatibleType` [INFO] [stdout] = note: required for `SelectStatement, ..., ..., ..., ..., ...>` to implement `LoadQuery<'_, _, models::Employee>` [INFO] [stdout] note: required by a bound in `first` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1779:22 [INFO] [stdout] | [INFO] [stdout] 1776 | fn first<'query, U>(self, conn: &mut Conn) -> QueryResult [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 1779 | Limit: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::first` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/rust_api-baf220df40788ead.long-type-1311635890818993637.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{type error}: FromStaticSqlRow<(..., ..., ..., ..., ..., ...), ...>` is not satisfied [INFO] [stdout] --> src/employees/models.rs:34:76 [INFO] [stdout] | [INFO] [stdout] 34 | let employee = employees::table.filter(employees::id.eq(id)).first(&conn)?; [INFO] [stdout] | ----- ^^^^^ the trait `SingleValue` is not implemented for `(Integer, Text, Text, Text, Integer, Integer)` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `SingleValue`: [INFO] [stdout] BigInt [INFO] [stdout] CChar [INFO] [stdout] Cidr [INFO] [stdout] Citext [INFO] [stdout] Double [INFO] [stdout] Inet [INFO] [stdout] Integer [INFO] [stdout] Jsonb [INFO] [stdout] and 21 others [INFO] [stdout] = note: required for `{type error}` to implement `FromStaticSqlRow<(Integer, Text, Text, Text, Integer, Integer), ...>` [INFO] [stdout] = note: required for `models::Employee` to implement `FromSqlRow<(Integer, Text, Text, Text, Integer, Integer), ...>` [INFO] [stdout] = note: required for `(Integer, Text, Text, Text, Integer, Integer)` to implement `load_dsl::private::CompatibleType` [INFO] [stdout] = note: required for `SelectStatement, ..., ..., ..., ..., ...>` to implement `LoadQuery<'_, {type error}, models::Employee>` [INFO] [stdout] note: required by a bound in `first` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1779:22 [INFO] [stdout] | [INFO] [stdout] 1776 | fn first<'query, U>(self, conn: &mut Conn) -> QueryResult [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 1779 | Limit: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::first` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/rust_api-baf220df40788ead.long-type-1311635890818993637.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `employee` [INFO] [stdout] --> src/employees/models.rs:40:44 [INFO] [stdout] | [INFO] [stdout] 40 | let employee = diesel::insert_into(employee::table) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of unresolved module or unlinked crate `employee` [INFO] [stdout] | help: a struct with a similar name exists: `Employee` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `employee`, use `cargo add employee` 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 `employee` [INFO] [stdout] --> src/employees/models.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | let employee = diesel::update(employee::table) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of unresolved module or unlinked crate `employee` [INFO] [stdout] | help: a struct with a similar name exists: `Employee` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `employee`, use `cargo add employee` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/employees/models.rs:57:79 [INFO] [stdout] | [INFO] [stdout] 57 | diesel::delete(employees::table.filter(employees::id.eq(id))).execute(&conn)?; [INFO] [stdout] | ------- ^^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut _` [INFO] [stdout] found reference `&PooledConnection>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1428:8 [INFO] [stdout] | [INFO] [stdout] 1428 | fn execute(self, conn: &mut Conn) -> QueryResult [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_message` [INFO] [stdout] --> src/error_handler.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let error_message = match status_code.as_u16()<500 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_api` (bin "rust_api") due to 12 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "39585aac060954b9738aac9221565199832832557272c5a43747faa16a1f4fe1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39585aac060954b9738aac9221565199832832557272c5a43747faa16a1f4fe1", kill_on_drop: false }` [INFO] [stdout] 39585aac060954b9738aac9221565199832832557272c5a43747faa16a1f4fe1