[INFO] cloning repository https://github.com/luca-rand/diesel_minmal_repro_left_join_count
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luca-rand/diesel_minmal_repro_left_join_count" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluca-rand%2Fdiesel_minmal_repro_left_join_count", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluca-rand%2Fdiesel_minmal_repro_left_join_count'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1cb017446bc917edea499d5f2d37fc527183fad9
[INFO] testing luca-rand/diesel_minmal_repro_left_join_count against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759-retry
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluca-rand%2Fdiesel_minmal_repro_left_join_count" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/luca-rand/diesel_minmal_repro_left_join_count
[INFO] finished tweaking git repo https://github.com/luca-rand/diesel_minmal_repro_left_join_count
[INFO] tweaked toml for git repo https://github.com/luca-rand/diesel_minmal_repro_left_join_count written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/luca-rand/diesel_minmal_repro_left_join_count on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/luca-rand/diesel_minmal_repro_left_join_count 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5285d00e506e8ea486fadecfde0bc5c29070bdf84ac6fc420ee4b2c55a9a5848
[INFO] running `Command { std: "docker" "start" "-a" "5285d00e506e8ea486fadecfde0bc5c29070bdf84ac6fc420ee4b2c55a9a5848", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5285d00e506e8ea486fadecfde0bc5c29070bdf84ac6fc420ee4b2c55a9a5848", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5285d00e506e8ea486fadecfde0bc5c29070bdf84ac6fc420ee4b2c55a9a5848", kill_on_drop: false }`
[INFO] [stdout] 5285d00e506e8ea486fadecfde0bc5c29070bdf84ac6fc420ee4b2c55a9a5848
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d5db3fd7b384f7da23e53e5a71b539f71b41161e82cedadad5655e6a817727d6
[INFO] running `Command { std: "docker" "start" "-a" "d5db3fd7b384f7da23e53e5a71b539f71b41161e82cedadad5655e6a817727d6", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.45
[INFO] [stderr]    Compiling pq-sys v0.4.6
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling diesel_derives v1.4.1
[INFO] [stderr]    Compiling diesel v1.4.5
[INFO] [stderr]    Compiling diesel_minmal_repro_left_join_count v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0277]: the trait bound `count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>: NonAggregate` is not satisfied
[INFO] [stdout]   --> src/main.rs:25:6
[INFO] [stdout]    |
[INFO] [stdout] 25 |     .select((users::id, users::name, count(posts::user_id)))
[INFO] [stdout]    |      ^^^^^^ the trait `NonAggregate` is not implemented for `count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the following other types implement trait `NonAggregate`:
[INFO] [stdout]              &'a T
[INFO] [stdout]              (A, B)
[INFO] [stdout]              (A, B, C)
[INFO] [stdout]              (A, B, C, D)
[INFO] [stdout]              (A, B, C, D, E)
[INFO] [stdout]              (A, B, C, D, E, F)
[INFO] [stdout]              (A, B, C, D, E, F, G)
[INFO] [stdout]              (A, B, C, D, E, F, G, H)
[INFO] [stdout]            and 83 others
[INFO] [stdout]    = note: required for `(id, name, count<Text, user_id>)` to implement `diesel::Expression`
[INFO] [stdout]    = note: required for `schema::users::table` to implement `SelectDsl<(schema::users::columns::id, schema::users::columns::name, count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>)>`
[INFO] [stdout]    = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/diesel_minmal_repro_left_join_count-1d02817cb62b2c1c.long-type-3809295972481345562.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 `schema::posts::columns::user_id: SelectableExpression<schema::users::table>` is not satisfied
[INFO] [stdout]   --> src/main.rs:25:6
[INFO] [stdout]    |
[INFO] [stdout] 25 |     .select((users::id, users::name, count(posts::user_id)))
[INFO] [stdout]    |      ^^^^^^ the trait `SelectableExpression<schema::users::table>` is not implemented for `schema::posts::columns::user_id`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the following other types implement trait `SelectableExpression<QS>`:
[INFO] [stdout]              `schema::posts::columns::user_id` implements `SelectableExpression<JoinOn<Join, On>>`
[INFO] [stdout]              `schema::posts::columns::user_id` implements `SelectableExpression<diesel::query_builder::SelectStatement<From>>`
[INFO] [stdout]              `schema::posts::columns::user_id` implements `SelectableExpression<diesel::query_source::joins::Join<Left, Right, Inner>>`
[INFO] [stdout]              `schema::posts::columns::user_id` implements `SelectableExpression<diesel::query_source::joins::Join<Left, Right, LeftOuter>>`
[INFO] [stdout]              `schema::posts::columns::user_id` implements `SelectableExpression<schema::posts::table>`
[INFO] [stdout]    = note: required for `count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>` to implement `SelectableExpression<schema::users::table>`
[INFO] [stdout]    = note: 1 redundant requirement hidden
[INFO] [stdout]    = note: required for `(id, name, count<Text, user_id>)` to implement `SelectableExpression<schema::users::table>`
[INFO] [stdout]    = note: required for `diesel::query_builder::SelectStatement<schema::users::table>` to implement `SelectDsl<(schema::users::columns::id, schema::users::columns::name, count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>)>`
[INFO] [stdout]    = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/diesel_minmal_repro_left_join_count-1d02817cb62b2c1c.long-type-3809295972481345562.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 `<table as AppearsInFromClause<table>>::Count == Once`
[INFO] [stdout]   --> src/main.rs:25:6
[INFO] [stdout]    |
[INFO] [stdout] 25 |     .select((users::id, users::name, count(posts::user_id)))
[INFO] [stdout]    |      ^^^^^^ type mismatch resolving `<table as AppearsInFromClause<table>>::Count == Once`
[INFO] [stdout]    |
[INFO] [stdout] note: expected this to be `diesel::query_source::Once`
[INFO] [stdout]   --> src/schema.rs:18:1
[INFO] [stdout]    |
[INFO] [stdout] 18 | / allow_tables_to_appear_in_same_query!(
[INFO] [stdout] 19 | |     posts,
[INFO] [stdout] 20 | |     users,
[INFO] [stdout] 21 | | );
[INFO] [stdout]    | |_^
[INFO] [stdout] note: required for `schema::posts::columns::user_id` to implement `AppearsOnTable<schema::users::table>`
[INFO] [stdout]   --> src/schema.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout] 1  | / table! {
[INFO] [stdout] 2  | |     posts (id) {
[INFO] [stdout] 3  | |         id -> Text,
[INFO] [stdout] 4  | |         title -> Text,
[INFO] [stdout] ...  |
[INFO] [stdout] 7  | | }
[INFO] [stdout]    | |_^ unsatisfied trait bound introduced here
[INFO] [stdout]    = note: 1 redundant requirement hidden
[INFO] [stdout]    = note: required for `count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>` to implement `AppearsOnTable<schema::users::table>`
[INFO] [stdout]    = note: required for `count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>` to implement `SelectableExpression<schema::users::table>`
[INFO] [stdout]    = note: 1 redundant requirement hidden
[INFO] [stdout]    = note: required for `(id, name, count<Text, user_id>)` to implement `SelectableExpression<schema::users::table>`
[INFO] [stdout]    = note: required for `diesel::query_builder::SelectStatement<schema::users::table>` to implement `SelectDsl<(schema::users::columns::id, schema::users::columns::name, count::count::count<diesel::sql_types::Text, schema::posts::columns::user_id>)>`
[INFO] [stdout]    = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/diesel_minmal_repro_left_join_count-1d02817cb62b2c1c.long-type-3809295972481345562.txt'
[INFO] [stdout]    = note: consider using `--verbose` to print the full type name to the console
[INFO] [stdout]    = note: this error originates in the macro `allow_tables_to_appear_in_same_query` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `SelectStatement<table, SelectClause<...>>: InternalJoinDsl<_, ..., _>` is not satisfied
[INFO] [stdout]   --> src/main.rs:26:6
[INFO] [stdout]    |
[INFO] [stdout] 26 |     .left_join(posts::table.on(users::id.eq(posts::user_id)))
[INFO] [stdout]    |      ^^^^^^^^^ the trait `InternalJoinDsl<_, LeftOuter, _>` is not implemented for `SelectStatement<table, SelectClause<(id, name, count<Text, user_id>)>>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `InternalJoinDsl<Rhs, Kind, On>` is implemented for `diesel::query_builder::SelectStatement<F, S, D, W, O, L, Of, G, LC>`
[INFO] [stdout]    = note: required for `SelectStatement<table, SelectClause<(id, name, count<Text, user_id>)>>` to implement `JoinWithImplicitOnClause<_, LeftOuter>`
[INFO] [stdout]    = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/diesel_minmal_repro_left_join_count-1d02817cb62b2c1c.long-type-4994970645068074885.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 `SelectStatement<table, ...>: JoinWithImplicitOnClause<_, ...>` is not satisfied
[INFO] [stdout]    --> src/main.rs:26:16
[INFO] [stdout]     |
[INFO] [stdout] 26  |     .left_join(posts::table.on(users::id.eq(posts::user_id)))
[INFO] [stdout]     |      --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `InternalJoinDsl<_, LeftOuter, _>` is not implemented for `SelectStatement<table, SelectClause<(id, name, count<Text, user_id>)>>`
[INFO] [stdout]     |      |
[INFO] [stdout]     |      required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `InternalJoinDsl<Rhs, Kind, On>` is implemented for `diesel::query_builder::SelectStatement<F, S, D, W, O, L, Of, G, LC>`
[INFO] [stdout]     = note: required for `SelectStatement<table, SelectClause<(id, name, count<Text, user_id>)>>` to implement `JoinWithImplicitOnClause<_, LeftOuter>`
[INFO] [stdout] note: required by a bound in `left_join`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-1.4.5/src/query_dsl/mod.rs:455:15
[INFO] [stdout]     |
[INFO] [stdout] 453 |     fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output
[INFO] [stdout]     |        --------- required by a bound in this associated function
[INFO] [stdout] 454 |     where
[INFO] [stdout] 455 |         Self: JoinWithImplicitOnClause<Rhs, joins::LeftOuter>,
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `QueryDsl::left_join`
[INFO] [stdout]     = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/diesel_minmal_repro_left_join_count-1d02817cb62b2c1c.long-type-4994970645068074885.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.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0271`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `diesel_minmal_repro_left_join_count` (bin "diesel_minmal_repro_left_join_count") due to 5 previous errors
[INFO] running `Command { std: "docker" "inspect" "d5db3fd7b384f7da23e53e5a71b539f71b41161e82cedadad5655e6a817727d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d5db3fd7b384f7da23e53e5a71b539f71b41161e82cedadad5655e6a817727d6", kill_on_drop: false }`
[INFO] [stdout] d5db3fd7b384f7da23e53e5a71b539f71b41161e82cedadad5655e6a817727d6
