[INFO] cloning repository https://github.com/harish0101-ops/Rust_sample_code_01 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harish0101-ops/Rust_sample_code_01" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharish0101-ops%2FRust_sample_code_01", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharish0101-ops%2FRust_sample_code_01'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3dc232359f17d19c07f185a88ab0598607454ec3 [INFO] checking harish0101-ops/Rust_sample_code_01/3dc232359f17d19c07f185a88ab0598607454ec3 against master#51ff895062ba60a7cba53f57af928c3fb7b0f2f4 for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharish0101-ops%2FRust_sample_code_01" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/harish0101-ops/Rust_sample_code_01 [INFO] finished tweaking git repo https://github.com/harish0101-ops/Rust_sample_code_01 [INFO] tweaked toml for git repo https://github.com/harish0101-ops/Rust_sample_code_01 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/harish0101-ops/Rust_sample_code_01 on toolchain 51ff895062ba60a7cba53f57af928c3fb7b0f2f4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/harish0101-ops/Rust_sample_code_01 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" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded devise_codegen v0.4.2 [INFO] [stderr] Downloaded devise v0.4.2 [INFO] [stderr] Downloaded rocket_sync_db_pools_codegen v0.1.0 [INFO] [stderr] Downloaded devise_core v0.4.2 [INFO] [stderr] Downloaded rocket_sync_db_pools v0.1.0 [INFO] [stderr] Downloaded ubyte v0.10.4 [INFO] [stderr] Downloaded hermit-abi v0.5.0 [INFO] [stderr] Downloaded uncased v0.9.10 [INFO] [stderr] Downloaded pear_codegen v0.2.9 [INFO] [stderr] Downloaded atomic v0.5.3 [INFO] [stderr] Downloaded dsl_auto_type v0.1.3 [INFO] [stderr] Downloaded serde_spanned v0.6.8 [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.7 [INFO] [stderr] Downloaded atomic v0.6.0 [INFO] [stderr] Downloaded pear v0.2.9 [INFO] [stderr] Downloaded tempfile v3.19.1 [INFO] [stderr] Downloaded pq-sys v0.7.1 [INFO] [stderr] Downloaded socket2 v0.5.9 [INFO] [stderr] Downloaded toml v0.8.20 [INFO] [stderr] Downloaded diesel_derives v2.2.4 [INFO] [stderr] Downloaded figment v0.10.19 [INFO] [stderr] Downloaded rocket_http v0.5.1 [INFO] [stderr] Downloaded rocket_codegen v0.5.1 [INFO] [stderr] Downloaded tokio-util v0.7.14 [INFO] [stderr] Downloaded winnow v0.7.6 [INFO] [stderr] Downloaded cookie v0.18.1 [INFO] [stderr] Downloaded rocket v0.5.1 [INFO] [stderr] Downloaded diesel v2.2.9 [INFO] [stderr] Downloaded rustix v1.0.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c8cf425d7ee3c862b0ac6343e2fbce4527df14c065d7df30ac51ded2fdd8780f [INFO] running `Command { std: "docker" "start" "-a" "c8cf425d7ee3c862b0ac6343e2fbce4527df14c065d7df30ac51ded2fdd8780f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8cf425d7ee3c862b0ac6343e2fbce4527df14c065d7df30ac51ded2fdd8780f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8cf425d7ee3c862b0ac6343e2fbce4527df14c065d7df30ac51ded2fdd8780f", kill_on_drop: false }` [INFO] [stdout] c8cf425d7ee3c862b0ac6343e2fbce4527df14c065d7df30ac51ded2fdd8780f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bff21b7bace1a9c0aa0b1076debcacb3ef67f68c85af9ed2f0d361d48f0713b0 [INFO] running `Command { std: "docker" "start" "-a" "bff21b7bace1a9c0aa0b1076debcacb3ef67f68c85af9ed2f0d361d48f0713b0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Checking winnow v0.7.6 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Compiling pq-sys v0.7.1 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking uuid v1.16.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling rocket_sync_db_pools v0.1.0 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking tempfile v3.19.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling rocket_sync_db_pools_codegen v0.1.0 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling dsl_auto_type v0.1.3 [INFO] [stderr] Compiling diesel_derives v2.2.4 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking diesel v2.2.9 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking toml_edit v0.22.24 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml v0.8.20 [INFO] [stderr] Checking blog_task_1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Integer)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Text)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Text)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Array)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stdout] error[E0432]: unresolved import `crate::models::PostWithTags` [INFO] [stdout] --> src/routes/posts.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::models::PostWithTags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PostWithTags` in `models` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: use `#[diesel(sql_type = Integer)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Text)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Text)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Array)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stderr] warning: #[sql_type] attribute form is deprecated [INFO] [stderr] = help: use `#[diesel(sql_type = Nullable)]` instead [INFO] [stderr] [INFO] [stdout] error: cannot find attribute `diesel` in this scope [INFO] [stdout] --> src/models.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | #[diesel(table_name = posts_tags)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `diesel` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: `diesel` is an attribute that can be used by the derive macros `AsChangeset`, `AsExpression`, `Associations`, `FromSqlRow`, `Identifiable`, `Insertable`, `Queryable`, `QueryableByName`, `Selectable`, `SqlType` and `ValidGrouping`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 52 + #[derive(AsChangeset, AsExpression, Associations, FromSqlRow, Identifiable, Insertable, Queryable, QueryableByName, Selectable, SqlType, ValidGrouping)] [INFO] [stdout] 53 | pub struct NewPostTag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Array` in this scope [INFO] [stdout] --> src/models.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | #[sql_type = "Array"] [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use diesel::pg::sql_types::Array; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `UserInfo` in this scope [INFO] [stdout] --> src/routes/posts.rs:129:47 [INFO] [stdout] | [INFO] [stdout] 129 | Some(user_id) => Some(UserInfo { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `posts_tags` [INFO] [stdout] --> src/models.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::{posts, users, posts_tags}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::deserialize::FromSqlRow` [INFO] [stdout] --> src/models.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::deserialize::FromSqlRow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::posts` [INFO] [stdout] --> src/routes/posts.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::schema::posts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::posts::dsl::*` [INFO] [stdout] --> src/routes/posts.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::dsl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `users as users_table` [INFO] [stdout] --> src/routes/posts.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::schema::users::dsl::{id as user_id, users as users_table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::dsl::*` [INFO] [stdout] --> src/routes/posts.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::dsl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::sql_types::Text` [INFO] [stdout] --> src/routes/posts.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use diesel::sql_types::Text; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Integer` and `Nullable` [INFO] [stdout] --> src/routes/posts.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | use diesel::sql_types::{Integer, Text, Nullable, Array}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::models::PostWithTags` [INFO] [stdout] --> src/routes/posts.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::models::PostWithTags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PostWithTags` in `models` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `diesel` in this scope [INFO] [stdout] --> src/models.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | #[diesel(table_name = posts_tags)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `diesel` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: `diesel` is an attribute that can be used by the derive macros `AsChangeset`, `AsExpression`, `Associations`, `FromSqlRow`, `Identifiable`, `Insertable`, `Queryable`, `QueryableByName`, `Selectable`, `SqlType` and `ValidGrouping`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 52 + #[derive(AsChangeset, AsExpression, Associations, FromSqlRow, Identifiable, Insertable, Queryable, QueryableByName, Selectable, SqlType, ValidGrouping)] [INFO] [stdout] 53 | pub struct NewPostTag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Array` in this scope [INFO] [stdout] --> src/models.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | #[sql_type = "Array"] [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use diesel::pg::sql_types::Array; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `UserInfo` in this scope [INFO] [stdout] --> src/routes/posts.rs:129:47 [INFO] [stdout] | [INFO] [stdout] 129 | Some(user_id) => Some(UserInfo { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `posts_tags` [INFO] [stdout] --> src/models.rs:1:35 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::{posts, users, posts_tags}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::deserialize::FromSqlRow` [INFO] [stdout] --> src/models.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::deserialize::FromSqlRow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::posts` [INFO] [stdout] --> src/routes/posts.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::schema::posts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::posts::dsl::*` [INFO] [stdout] --> src/routes/posts.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::dsl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `users as users_table` [INFO] [stdout] --> src/routes/posts.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::schema::users::dsl::{id as user_id, users as users_table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::dsl::*` [INFO] [stdout] --> src/routes/posts.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::dsl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::sql_types::Text` [INFO] [stdout] --> src/routes/posts.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use diesel::sql_types::Text; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Integer` and `Nullable` [INFO] [stdout] --> src/routes/posts.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | use diesel::sql_types::{Integer, Text, Nullable, Array}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `NewPostTag: diesel::Insertable` is not satisfied [INFO] [stdout] --> src/routes/posts.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | .values(NewPostTag { [INFO] [stdout] | ______________________------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 34 | | post_id: inserted_post.id, [INFO] [stdout] 35 | | tag: tag.clone(), [INFO] [stdout] 36 | | }) [INFO] [stdout] | |_____________________^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `diesel::Insertable` is not implemented for `NewPostTag` [INFO] [stdout] --> src/models.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct NewPostTag { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `diesel::Insertable`: [INFO] [stdout] `&'a (T0, T1)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5, T6)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5, T6, T7)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5, T6, T7, T8)` implements `diesel::Insertable` [INFO] [stdout] and 122 others [INFO] [stdout] note: required by a bound in `IncompleteInsertStatement::::values` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.9/src/query_builder/insert_statement/mod.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn values(self, records: U) -> InsertStatement [INFO] [stdout] | ------ required by a bound in this associated function [INFO] [stdout] 117 | where [INFO] [stdout] 118 | U: Insertable, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `IncompleteInsertStatement::::values` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/blog_task_1-5b3b0dd7106ab3af.long-type-554774633054736361.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::SqlType == Nullable` [INFO] [stdout] --> src/routes/posts.rs:90:61 [INFO] [stdout] | [INFO] [stdout] 90 | .left_join(users::table.on(users::id.nullable().eq(posts::created_by))) [INFO] [stdout] | ^^ type mismatch resolving `::SqlType == Nullable` [INFO] [stdout] | [INFO] [stdout] note: expected this to be `Nullable` [INFO] [stdout] --> src/schema.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | created_by -> Int4, [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: expected struct `Nullable` [INFO] [stdout] found struct `diesel::sql_types::Integer` [INFO] [stdout] = note: required for `schema::posts::columns::created_by` to implement `AsExpression>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SelectStatement<..., ..., ..., ..., ..., ..., ...>: BoxedDsl<'_, _>` is not satisfied [INFO] [stdout] --> src/routes/posts.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | .into_boxed(); [INFO] [stdout] | ^^^^^^^^^^ the trait `BoxedDsl<'_, _>` is not implemented for `SelectStatement, ..., ..., ..., ..., ..., ...>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `BoxedDsl<'a, DB>`: [INFO] [stdout] SelectStatement, S, D, W, O, LOf, G, H> [INFO] [stdout] SelectStatement [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/blog_task_1-5b3b0dd7106ab3af.long-type-8668386112531006812.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 `NewPostTag: diesel::Insertable` is not satisfied [INFO] [stdout] --> src/routes/posts.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | .values(NewPostTag { [INFO] [stdout] | ______________________------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 34 | | post_id: inserted_post.id, [INFO] [stdout] 35 | | tag: tag.clone(), [INFO] [stdout] 36 | | }) [INFO] [stdout] | |_____________________^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `diesel::Insertable` is not implemented for `NewPostTag` [INFO] [stdout] --> src/models.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct NewPostTag { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `diesel::Insertable`: [INFO] [stdout] `&'a (T0, T1)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5, T6)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5, T6, T7)` implements `diesel::Insertable` [INFO] [stdout] `&'a (T0, T1, T2, T3, T4, T5, T6, T7, T8)` implements `diesel::Insertable` [INFO] [stdout] and 122 others [INFO] [stdout] note: required by a bound in `IncompleteInsertStatement::::values` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.9/src/query_builder/insert_statement/mod.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn values(self, records: U) -> InsertStatement [INFO] [stdout] | ------ required by a bound in this associated function [INFO] [stdout] 117 | where [INFO] [stdout] 118 | U: Insertable, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `IncompleteInsertStatement::::values` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/blog_task_1-d07ae7f4dbd11f80.long-type-9056113267679301661.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::SqlType == Nullable` [INFO] [stdout] --> src/routes/posts.rs:90:61 [INFO] [stdout] | [INFO] [stdout] 90 | .left_join(users::table.on(users::id.nullable().eq(posts::created_by))) [INFO] [stdout] | ^^ type mismatch resolving `::SqlType == Nullable` [INFO] [stdout] | [INFO] [stdout] note: expected this to be `Nullable` [INFO] [stdout] --> src/schema.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | created_by -> Int4, [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: expected struct `Nullable` [INFO] [stdout] found struct `diesel::sql_types::Integer` [INFO] [stdout] = note: required for `schema::posts::columns::created_by` to implement `AsExpression>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `SelectStatement<..., ..., ..., ..., ..., ..., ...>: BoxedDsl<'_, _>` is not satisfied [INFO] [stdout] --> src/routes/posts.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | .into_boxed(); [INFO] [stdout] | ^^^^^^^^^^ the trait `BoxedDsl<'_, _>` is not implemented for `SelectStatement, ..., ..., ..., ..., ..., ...>` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `BoxedDsl<'a, DB>`: [INFO] [stdout] SelectStatement, S, D, W, O, LOf, G, H> [INFO] [stdout] SelectStatement [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/blog_task_1-d07ae7f4dbd11f80.long-type-13003845258478241457.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0412, E0422, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blog_task_1` (bin "blog_task_1" test) due to 7 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0412, E0422, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `blog_task_1` (bin "blog_task_1") due to 7 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bff21b7bace1a9c0aa0b1076debcacb3ef67f68c85af9ed2f0d361d48f0713b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bff21b7bace1a9c0aa0b1076debcacb3ef67f68c85af9ed2f0d361d48f0713b0", kill_on_drop: false }` [INFO] [stdout] bff21b7bace1a9c0aa0b1076debcacb3ef67f68c85af9ed2f0d361d48f0713b0