[INFO] cloning repository https://github.com/natumn/rust_app_demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/natumn/rust_app_demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatumn%2Frust_app_demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatumn%2Frust_app_demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c179703827086425b524890c4a4f743a922a7793 [INFO] checking natumn/rust_app_demo against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnatumn%2Frust_app_demo" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/natumn/rust_app_demo on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/natumn/rust_app_demo [INFO] finished tweaking git repo https://github.com/natumn/rust_app_demo [INFO] tweaked toml for git repo https://github.com/natumn/rust_app_demo written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/natumn/rust_app_demo 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d54211610d7ec5704f51c4ab36b545df1170b08f509a60281d9111b075032911 [INFO] running `Command { std: "docker" "start" "-a" "d54211610d7ec5704f51c4ab36b545df1170b08f509a60281d9111b075032911", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d54211610d7ec5704f51c4ab36b545df1170b08f509a60281d9111b075032911", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d54211610d7ec5704f51c4ab36b545df1170b08f509a60281d9111b075032911", kill_on_drop: false }` [INFO] [stdout] d54211610d7ec5704f51c4ab36b545df1170b08f509a60281d9111b075032911 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a100a42b2615f72bc710e150be2a0a04681780ca2a96472e8da03891f5bdb58 [INFO] running `Command { std: "docker" "start" "-a" "2a100a42b2615f72bc710e150be2a0a04681780ca2a96472e8da03891f5bdb58", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking lazy_static v1.0.0 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling pq-sys v0.4.4 [INFO] [stderr] Checking regex-syntax v0.4.2 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking bitflags v1.0.1 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking thread_local v0.3.5 [INFO] [stderr] Checking byteorder v1.2.1 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking aho-corasick v0.6.4 [INFO] [stderr] Checking regex v0.2.5 [INFO] [stderr] Compiling diesel_derives v1.1.0 [INFO] [stderr] Checking dotenv v0.9.0 [INFO] [stderr] Checking diesel v1.1.1 [INFO] [stderr] Checking rust_app_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `pgConnection` in this scope [INFO] [stdout] --> src/main.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn create_post<'a>(conn: &pgConnection, title: &'a str, body: &'a str) -> Post { [INFO] [stdout] | ^^^^^^^^^^^^ help: a struct with a similar name exists: `PgConnection` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/diesel-1.1.1/src/pg/connection/mod.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct PgConnection { [INFO] [stdout] | ----------------------- similarly named struct `PgConnection` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `pgConnection` in this scope [INFO] [stdout] --> src/main.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn create_post<'a>(conn: &pgConnection, title: &'a str, body: &'a str) -> Post { [INFO] [stdout] | ^^^^^^^^^^^^ help: a struct with a similar name exists: `PgConnection` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/diesel-1.1.1/src/pg/connection/mod.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct PgConnection { [INFO] [stdout] | ----------------------- similarly named struct `PgConnection` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `published` in this scope [INFO] [stdout] --> src/main.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | let results = post.filter(published.eq(true)) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 8 + use schema::posts::published; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `published` in this scope [INFO] [stdout] --> src/main.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | let results = post.filter(published.eq(true)) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 8 + use schema::posts::published; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 10 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 10 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `filter` exists for struct `Post`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | let results = post.filter(published.eq(true)) [INFO] [stdout] | ^^^^^^ method cannot be called on `Post` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Post { [INFO] [stdout] | --------------- method `filter` not found for this struct because it doesn't satisfy `models::Post: Iterator`, `models::Post: Table` or `models::Post: diesel::QueryDsl` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `models::Post: Table` [INFO] [stdout] which is required by `models::Post: diesel::QueryDsl` [INFO] [stdout] `&models::Post: Table` [INFO] [stdout] which is required by `&models::Post: diesel::QueryDsl` [INFO] [stdout] `&mut models::Post: Table` [INFO] [stdout] which is required by `&mut models::Post: diesel::QueryDsl` [INFO] [stdout] `models::Post: Iterator` [INFO] [stdout] which is required by `&mut models::Post: Iterator` [INFO] [stdout] note: the traits `Iterator` and `Table` must be implemented [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/diesel-1.1.1/src/query_source/mod.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Table: QuerySource + AsQuery + Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:44:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `filter`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FilterDsl` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `diesel::QueryDsl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `filter` exists for struct `Post`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | let results = post.filter(published.eq(true)) [INFO] [stdout] | ^^^^^^ method cannot be called on `Post` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Post { [INFO] [stdout] | --------------- method `filter` not found for this struct because it doesn't satisfy `models::Post: Iterator`, `models::Post: Table` or `models::Post: diesel::QueryDsl` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `models::Post: Table` [INFO] [stdout] which is required by `models::Post: diesel::QueryDsl` [INFO] [stdout] `&models::Post: Table` [INFO] [stdout] which is required by `&models::Post: diesel::QueryDsl` [INFO] [stdout] `&mut models::Post: Table` [INFO] [stdout] which is required by `&mut models::Post: diesel::QueryDsl` [INFO] [stdout] `models::Post: Iterator` [INFO] [stdout] which is required by `&mut models::Post: Iterator` [INFO] [stdout] note: the traits `Iterator` and `Table` must be implemented [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/diesel-1.1.1/src/query_source/mod.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Table: QuerySource + AsQuery + Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/iter/traits/iterator.rs:44:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `filter`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FilterDsl` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `diesel::QueryDsl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_app_demo` (bin "rust_app_demo" test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_app_demo` (bin "rust_app_demo") due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "2a100a42b2615f72bc710e150be2a0a04681780ca2a96472e8da03891f5bdb58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a100a42b2615f72bc710e150be2a0a04681780ca2a96472e8da03891f5bdb58", kill_on_drop: false }` [INFO] [stdout] 2a100a42b2615f72bc710e150be2a0a04681780ca2a96472e8da03891f5bdb58