[INFO] cloning repository https://github.com/craigfay/rust_json_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/craigfay/rust_json_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcraigfay%2Frust_json_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcraigfay%2Frust_json_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 40dc636a3002087dec187661f9a4a88d2899dd9e [INFO] checking craigfay/rust_json_api against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcraigfay%2Frust_json_api" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/craigfay/rust_json_api on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/craigfay/rust_json_api [INFO] finished tweaking git repo https://github.com/craigfay/rust_json_api [INFO] tweaked toml for git repo https://github.com/craigfay/rust_json_api written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/craigfay/rust_json_api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8718997592c7da4fc3ef0334fc84eb37e0cd57af864e676124e1c509e56ebf12 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8718997592c7da4fc3ef0334fc84eb37e0cd57af864e676124e1c509e56ebf12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8718997592c7da4fc3ef0334fc84eb37e0cd57af864e676124e1c509e56ebf12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8718997592c7da4fc3ef0334fc84eb37e0cd57af864e676124e1c509e56ebf12", kill_on_drop: false }` [INFO] [stdout] 8718997592c7da4fc3ef0334fc84eb37e0cd57af864e676124e1c509e56ebf12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d987a548ccdd3d9f0b262c9cc0f79a55443a758f075dbdf88b162db0c6e61efd [INFO] running `Command { std: "docker" "start" "-a" "d987a548ccdd3d9f0b262c9cc0f79a55443a758f075dbdf88b162db0c6e61efd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Compiling syn v1.0.34 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking smallvec v1.4.1 [INFO] [stderr] Checking instant v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Checking tinyvec v0.3.3 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking gimli v0.22.0 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking object v0.20.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling encoding_rs v0.8.23 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking tracing-core v0.1.11 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Checking miniz_oxide v0.4.0 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling hashbrown v0.8.1 [INFO] [stderr] Compiling indexmap v1.5.0 [INFO] [stderr] Checking tracing v0.1.17 [INFO] [stderr] Compiling libsqlite3-sys v0.18.0 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking flate2 v1.0.16 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking resolv-conf v0.6.3 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking addr2line v0.13.0 [INFO] [stderr] Checking chrono v0.4.13 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking backtrace v0.3.50 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking actix-codec v0.2.0 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling actix-web-codegen v0.2.2 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking actix-service v1.0.5 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking h2 v0.2.6 [INFO] [stderr] Checking futures v0.3.5 [INFO] [stderr] Checking trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Checking actix-utils v1.0.6 [INFO] [stderr] Checking actix-server v1.0.3 [INFO] [stderr] Checking actix-tls v1.0.0 [INFO] [stderr] Checking actix-testing v1.0.1 [INFO] [stderr] Checking trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking actix-router v0.2.4 [INFO] [stderr] Checking actix-connect v1.0.2 [INFO] [stderr] Checking diesel v1.4.5 [INFO] [stderr] Checking actix-http v1.0.1 [INFO] [stderr] Checking awc v1.0.1 [INFO] [stderr] Checking actix-web v2.0.0 [INFO] [stderr] Checking rust_json_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/db/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/db/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | / diesel::update( [INFO] [stdout] 39 | | schema::posts::table.filter(schema::posts::id.eq(id)) [INFO] [stdout] 40 | | ) [INFO] [stdout] 41 | | .set(mutation) [INFO] [stdout] 42 | | .execute(&connection); [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/db/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | / diesel::update( [INFO] [stdout] 39 | | schema::posts::table.filter(schema::posts::id.eq(id)) [INFO] [stdout] 40 | | ) [INFO] [stdout] 41 | | .set(mutation) [INFO] [stdout] 42 | | .execute(&connection); [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/bin/notes.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | let rows_inserted = diesel::insert_into(users) [INFO] [stdout] | ^^^ expected item [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_json_api` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/bin/notes.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | let rows_inserted = diesel::insert_into(users) [INFO] [stdout] | ^^^ expected item [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `schema` in `rust_json_api` [INFO] [stdout] --> src/bin/delete_post.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_json_api::schema::posts::dsl::*; [INFO] [stdout] | ^^^^^^ could not find `schema` in `rust_json_api` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `schema` in `rust_json_api` [INFO] [stdout] --> src/bin/delete_post.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use rust_json_api::schema::posts::dsl::*; [INFO] [stdout] | ^^^^^^ could not find `schema` in `rust_json_api` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/bin/write_post.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | let post = create_post(title, &body); [INFO] [stdout] | ^^^^^^^^^^^ ----- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/db/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn create_post(new_post: &models::PostInsertion) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/bin/write_post.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | let post = create_post(title, &body); [INFO] [stdout] | ^^^^^^^^^^^ ----- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/db/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn create_post(new_post: &models::PostInsertion) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `posts` in this scope [INFO] [stdout] --> src/bin/delete_post.rs:15:38 [INFO] [stdout] | [INFO] [stdout] 15 | let num_deleted = diesel::delete(posts.filter(title.like(pattern))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `posts` in this scope [INFO] [stdout] --> src/bin/delete_post.rs:15:38 [INFO] [stdout] | [INFO] [stdout] 15 | let num_deleted = diesel::delete(posts.filter(title.like(pattern))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `title` in this scope [INFO] [stdout] --> src/bin/delete_post.rs:15:51 [INFO] [stdout] | [INFO] [stdout] 15 | let num_deleted = diesel::delete(posts.filter(title.like(pattern))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::title; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::title; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `title` in this scope [INFO] [stdout] --> src/bin/delete_post.rs:15:51 [INFO] [stdout] | [INFO] [stdout] 15 | let num_deleted = diesel::delete(posts.filter(title.like(pattern))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::title; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::title; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/bin/publish_post.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use self::db::models::Post; [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `rust_json_api::db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/bin/publish_post.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use self::db::models::Post; [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `rust_json_api::db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `schema` in `rust_json_api` [INFO] [stdout] --> src/bin/publish_post.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use rust_json_api::schema::posts::dsl::{posts, published}; [INFO] [stdout] | ^^^^^^ could not find `schema` in `rust_json_api` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `schema` in `rust_json_api` [INFO] [stdout] --> src/bin/publish_post.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use rust_json_api::schema::posts::dsl::{posts, published}; [INFO] [stdout] | ^^^^^^ could not find `schema` in `rust_json_api` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `posts` in this scope [INFO] [stdout] --> src/bin/publish_post.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let post = diesel::update(posts.find(id)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `published` in this scope [INFO] [stdout] --> src/bin/publish_post.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | .set(published.eq(true)) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::published; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::published; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Post` in this scope [INFO] [stdout] --> src/bin/publish_post.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | .get_result::(&connection) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::Post; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::models::Post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `posts` in this scope [INFO] [stdout] --> src/bin/publish_post.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let post = diesel::update(posts.find(id)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::dsl::posts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `published` in this scope [INFO] [stdout] --> src/bin/publish_post.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | .set(published.eq(true)) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::schema::posts::published; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::schema::posts::published; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Post` in this scope [INFO] [stdout] --> src/bin/publish_post.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | .get_result::(&connection) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::models::Post; [INFO] [stdout] | [INFO] [stdout] 4 | use rust_json_api::db::models::Post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d987a548ccdd3d9f0b262c9cc0f79a55443a758f075dbdf88b162db0c6e61efd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d987a548ccdd3d9f0b262c9cc0f79a55443a758f075dbdf88b162db0c6e61efd", kill_on_drop: false }` [INFO] [stdout] d987a548ccdd3d9f0b262c9cc0f79a55443a758f075dbdf88b162db0c6e61efd