[INFO] cloning repository https://github.com/e2fletcher/mini-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/e2fletcher/mini-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fe2fletcher%2Fmini-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fe2fletcher%2Fmini-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] be738351623c646b8505fc980ae2f70bab0c76ed [INFO] checking e2fletcher/mini-api against try#95813608313bff49cfc1afc393a946a3c085b772 for pr-148946 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fe2fletcher%2Fmini-api" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/e2fletcher/mini-api [INFO] finished tweaking git repo https://github.com/e2fletcher/mini-api [INFO] tweaked toml for git repo https://github.com/e2fletcher/mini-api written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/e2fletcher/mini-api on toolchain 95813608313bff49cfc1afc393a946a3c085b772 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/e2fletcher/mini-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" "+95813608313bff49cfc1afc393a946a3c085b772" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b5b1e9eb896b86bf614ce99b04da022ad1cfe0f39d8366678c6a1f9e7416ed5 [INFO] running `Command { std: "docker" "start" "-a" "0b5b1e9eb896b86bf614ce99b04da022ad1cfe0f39d8366678c6a1f9e7416ed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b5b1e9eb896b86bf614ce99b04da022ad1cfe0f39d8366678c6a1f9e7416ed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b5b1e9eb896b86bf614ce99b04da022ad1cfe0f39d8366678c6a1f9e7416ed5", kill_on_drop: false }` [INFO] [stdout] 0b5b1e9eb896b86bf614ce99b04da022ad1cfe0f39d8366678c6a1f9e7416ed5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5389dace74e759d4972bf56b6066b3257d49d7f20d8a8872a9e36343ab3024d [INFO] running `Command { std: "docker" "start" "-a" "b5389dace74e759d4972bf56b6066b3257d49d7f20d8a8872a9e36343ab3024d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Compiling syn v2.0.23 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.70 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking md-5 v0.10.5 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.7 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking siphasher v0.3.10 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Compiling serde_json v1.0.99 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Compiling axum v0.6.18 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking deadpool-runtime v0.1.2 [INFO] [stderr] Checking retain_mut v0.1.9 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking regex-syntax v0.7.2 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking scoped-futures v0.1.3 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking http-range-header v0.3.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking matchit v0.7.0 [INFO] [stderr] Checking postgres-protocol v0.6.5 [INFO] [stderr] Checking postgres-types v0.2.5 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking regex v1.8.4 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling serde_derive v1.0.164 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling pin-project-internal v1.1.1 [INFO] [stderr] Compiling diesel_derives v2.1.0 [INFO] [stderr] Checking pin-project v1.1.1 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking tower-http v0.4.1 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking deadpool v0.9.5 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-postgres v0.7.8 [INFO] [stderr] Checking uuid v1.4.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.11 [INFO] [stderr] Checking diesel v2.1.0 [INFO] [stderr] Checking diesel-async v0.3.1 [INFO] [stderr] Checking mini-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | .load(&mut conn) [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 50 ~ diesel_async::RunQueryDsl::load(todos [INFO] [stdout] 51 + .offset(offset) [INFO] [stdout] 52 + .limit(limit), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 50 ~ diesel::RunQueryDsl::load(todos [INFO] [stdout] 51 + .offset(offset) [INFO] [stdout] 52 + .limit(limit), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | / todos [INFO] [stdout] 51 | | .offset(offset) [INFO] [stdout] 52 | | .limit(limit) [INFO] [stdout] 53 | | .load(&mut conn) [INFO] [stdout] 54 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | .first(&mut conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 62 ~ diesel_async::RunQueryDsl::first(todos [INFO] [stdout] 63 + .filter(id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 62 ~ diesel::RunQueryDsl::first(todos [INFO] [stdout] 63 + .filter(id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | / todos [INFO] [stdout] 63 | | .filter(id.eq(todo_id)) [INFO] [stdout] 64 | | .first(&mut conn) [INFO] [stdout] 65 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | .get_result(&mut conn) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 ~ let todo = diesel_async::RunQueryDsl::get_result(diesel::update(todos::table) [INFO] [stdout] 78 + .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 79 + .set(&UpdateTodo { [INFO] [stdout] 80 + text: todo_text, [INFO] [stdout] 81 + completed: todo_completed, [INFO] [stdout] 82 + }), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 ~ let todo = diesel::RunQueryDsl::get_result(diesel::update(todos::table) [INFO] [stdout] 78 + .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 79 + .set(&UpdateTodo { [INFO] [stdout] 80 + text: todo_text, [INFO] [stdout] 81 + completed: todo_completed, [INFO] [stdout] 82 + }), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | let todo = diesel::update(todos::table) [INFO] [stdout] | ____________________^ [INFO] [stdout] 78 | | .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 79 | | .set(&UpdateTodo { [INFO] [stdout] 80 | | text: todo_text, [INFO] [stdout] ... | [INFO] [stdout] 83 | | .get_result(&mut conn) [INFO] [stdout] 84 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | .get_result(&mut conn) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel::RunQueryDsl::get_result(diesel::insert_into(todos::table) [INFO] [stdout] 96 + .values(&new_todo) [INFO] [stdout] 97 + .returning(Todo::as_returning()), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel_async::RunQueryDsl::get_result(diesel::insert_into(todos::table) [INFO] [stdout] 96 + .values(&new_todo) [INFO] [stdout] 97 + .returning(Todo::as_returning()), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | / diesel::insert_into(todos::table) [INFO] [stdout] 96 | | .values(&new_todo) [INFO] [stdout] 97 | | .returning(Todo::as_returning()) [INFO] [stdout] 98 | | .get_result(&mut conn) [INFO] [stdout] 99 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `DeleteStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 106 ~ diesel::RunQueryDsl::execute(diesel::delete(todos::table) [INFO] [stdout] 107 + .filter(todos::dsl::id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 106 ~ diesel_async::RunQueryDsl::execute(diesel::delete(todos::table) [INFO] [stdout] 107 + .filter(todos::dsl::id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | / diesel::delete(todos::table) [INFO] [stdout] 107 | | .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 108 | | .execute(&mut conn) [INFO] [stdout] 109 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mini-api` (lib test) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | .load(&mut conn) [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 50 ~ diesel_async::RunQueryDsl::load(todos [INFO] [stdout] 51 + .offset(offset) [INFO] [stdout] 52 + .limit(limit), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 50 ~ diesel::RunQueryDsl::load(todos [INFO] [stdout] 51 + .offset(offset) [INFO] [stdout] 52 + .limit(limit), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | / todos [INFO] [stdout] 51 | | .offset(offset) [INFO] [stdout] 52 | | .limit(limit) [INFO] [stdout] 53 | | .load(&mut conn) [INFO] [stdout] 54 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | .first(&mut conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 62 ~ diesel_async::RunQueryDsl::first(todos [INFO] [stdout] 63 + .filter(id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 62 ~ diesel::RunQueryDsl::first(todos [INFO] [stdout] 63 + .filter(id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | / todos [INFO] [stdout] 63 | | .filter(id.eq(todo_id)) [INFO] [stdout] 64 | | .first(&mut conn) [INFO] [stdout] 65 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | .get_result(&mut conn) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 ~ let todo = diesel_async::RunQueryDsl::get_result(diesel::update(todos::table) [INFO] [stdout] 78 + .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 79 + .set(&UpdateTodo { [INFO] [stdout] 80 + text: todo_text, [INFO] [stdout] 81 + completed: todo_completed, [INFO] [stdout] 82 + }), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 ~ let todo = diesel::RunQueryDsl::get_result(diesel::update(todos::table) [INFO] [stdout] 78 + .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 79 + .set(&UpdateTodo { [INFO] [stdout] 80 + text: todo_text, [INFO] [stdout] 81 + completed: todo_completed, [INFO] [stdout] 82 + }), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | let todo = diesel::update(todos::table) [INFO] [stdout] | ____________________^ [INFO] [stdout] 78 | | .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 79 | | .set(&UpdateTodo { [INFO] [stdout] 80 | | text: todo_text, [INFO] [stdout] ... | [INFO] [stdout] 83 | | .get_result(&mut conn) [INFO] [stdout] 84 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | .get_result(&mut conn) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel::RunQueryDsl::get_result(diesel::insert_into(todos::table) [INFO] [stdout] 96 + .values(&new_todo) [INFO] [stdout] 97 + .returning(Todo::as_returning()), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel_async::RunQueryDsl::get_result(diesel::insert_into(todos::table) [INFO] [stdout] 96 + .values(&new_todo) [INFO] [stdout] 97 + .returning(Todo::as_returning()), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | / diesel::insert_into(todos::table) [INFO] [stdout] 96 | | .values(&new_todo) [INFO] [stdout] 97 | | .returning(Todo::as_returning()) [INFO] [stdout] 98 | | .get_result(&mut conn) [INFO] [stdout] 99 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repository/postgres.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `DeleteStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 106 ~ diesel::RunQueryDsl::execute(diesel::delete(todos::table) [INFO] [stdout] 107 + .filter(todos::dsl::id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 106 ~ diesel_async::RunQueryDsl::execute(diesel::delete(todos::table) [INFO] [stdout] 107 + .filter(todos::dsl::id.eq(todo_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repository/postgres.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | / diesel::delete(todos::table) [INFO] [stdout] 107 | | .filter(todos::dsl::id.eq(todo_id)) [INFO] [stdout] 108 | | .execute(&mut conn) [INFO] [stdout] 109 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mini-api` (lib) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "b5389dace74e759d4972bf56b6066b3257d49d7f20d8a8872a9e36343ab3024d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5389dace74e759d4972bf56b6066b3257d49d7f20d8a8872a9e36343ab3024d", kill_on_drop: false }` [INFO] [stdout] b5389dace74e759d4972bf56b6066b3257d49d7f20d8a8872a9e36343ab3024d