[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] checking tattoo1880/rust_api against try#ed606620234c6b50f2414162c4bbabd5f4a925f3 for pr-147995 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftattoo1880%2Frust_api" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tattoo1880/rust_api on toolchain ed606620234c6b50f2414162c4bbabd5f4a925f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/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" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aho-corasick v0.6.10 [INFO] [stderr] Downloaded listenfd v0.3.5 [INFO] [stderr] Downloaded utf8-ranges v1.0.5 [INFO] [stderr] Downloaded dotenv v0.11.0 [INFO] [stderr] Downloaded ucd-util v0.1.10 [INFO] [stderr] Downloaded uuid v0.6.5 [INFO] [stderr] Downloaded migrations_internals v2.2.0 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Downloaded dsl_auto_type v0.1.2 [INFO] [stderr] Downloaded migrations_macros v2.2.0 [INFO] [stderr] Downloaded derive-error-chain v0.11.2 [INFO] [stderr] Downloaded const_fn v0.4.10 [INFO] [stderr] Downloaded diesel_migrations v2.2.0 [INFO] [stderr] Downloaded unicode-bidi v0.3.17 [INFO] [stderr] Downloaded error-chain v0.11.0 [INFO] [stderr] Downloaded syntex_fmt_macros v0.5.0 [INFO] [stderr] Downloaded regex v0.2.11 [INFO] [stderr] Downloaded diesel_derives v2.2.3 [INFO] [stderr] Downloaded regex-syntax v0.5.6 [INFO] [stderr] Downloaded actix-web v3.3.3 [INFO] [stderr] Downloaded actix-http v2.2.2 [INFO] [stderr] Downloaded cc v1.2.3 [INFO] [stderr] Downloaded diesel v2.2.6 [INFO] [stderr] Downloaded libc v0.2.168 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1754db9609fe968fdc655feacc58b1ff7d034191cff4b0f6628e2df73cc598e1 [INFO] running `Command { std: "docker" "start" "-a" "1754db9609fe968fdc655feacc58b1ff7d034191cff4b0f6628e2df73cc598e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1754db9609fe968fdc655feacc58b1ff7d034191cff4b0f6628e2df73cc598e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1754db9609fe968fdc655feacc58b1ff7d034191cff4b0f6628e2df73cc598e1", kill_on_drop: false }` [INFO] [stdout] 1754db9609fe968fdc655feacc58b1ff7d034191cff4b0f6628e2df73cc598e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bf05de70862885da3a8f143d78d5c00071d4b4b8c5fc5932e9eba5315fb7ec8 [INFO] running `Command { std: "docker" "start" "-a" "5bf05de70862885da3a8f143d78d5c00071d4b4b8c5fc5932e9eba5315fb7ec8", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Compiling pin-project-internal v0.4.30 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Checking copyless v0.1.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Compiling const_fn v0.4.10 [INFO] [stderr] Checking unicode-bidi v0.3.17 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking brotli v3.5.0 [INFO] [stderr] Checking object v0.36.5 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Checking ucd-util v0.1.10 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling syntex_fmt_macros v0.5.0 [INFO] [stderr] Checking bytestring v1.4.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking utf8-ranges v1.0.5 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking listenfd v0.3.5 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking addr2line v0.24.2 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Compiling derive-error-chain v0.11.2 [INFO] [stderr] Checking pin-project v0.4.30 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Compiling serde_derive v1.0.215 [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 displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.18 [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] Checking error-chain v0.11.0 [INFO] [stderr] Checking dotenv v0.11.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling dsl_auto_type v0.1.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling diesel_derives v2.2.3 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking serde v1.0.215 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking futures v0.3.31 [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] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking actix-router v0.2.7 [INFO] [stderr] Checking uuid v0.6.5 [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 diesel v2.2.6 [INFO] [stderr] Checking trust-dns-proto v0.19.7 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking migrations_internals v2.2.0 [INFO] [stderr] Checking trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling migrations_macros v2.2.0 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking actix-http v2.2.2 [INFO] [stderr] Checking awc v2.0.3 [INFO] [stderr] Checking actix-web v3.3.3 [INFO] [stderr] Checking diesel_migrations v2.2.0 [INFO] [stderr] Checking 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] 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] 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[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[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-0f5bade6a390f7e2.long-type-16681231793374502949.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 `(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-c777e3a1f45f1242.long-type-2935510571814017446.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-0f5bade6a390f7e2.long-type-18227079642883186675.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-c777e3a1f45f1242.long-type-8741797861781760119.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: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[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-0f5bade6a390f7e2.long-type-16681231793374502949.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 `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-c777e3a1f45f1242.long-type-2935510571814017446.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-c777e3a1f45f1242.long-type-2935510571814017446.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[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-0f5bade6a390f7e2.long-type-16681231793374502949.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[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] 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] 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] [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_api` (bin "rust_api" test) due to 12 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5bf05de70862885da3a8f143d78d5c00071d4b4b8c5fc5932e9eba5315fb7ec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bf05de70862885da3a8f143d78d5c00071d4b4b8c5fc5932e9eba5315fb7ec8", kill_on_drop: false }` [INFO] [stdout] 5bf05de70862885da3a8f143d78d5c00071d4b4b8c5fc5932e9eba5315fb7ec8