[INFO] cloning repository https://github.com/marcin-5/rust-cr8s-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marcin-5/rust-cr8s-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcin-5%2Frust-cr8s-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcin-5%2Frust-cr8s-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 93d00de5b4e3229bdc7d618ad605eb008b4915aa [INFO] checking marcin-5/rust-cr8s-backend against try#95813608313bff49cfc1afc393a946a3c085b772 for pr-148946 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcin-5%2Frust-cr8s-backend" "/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/marcin-5/rust-cr8s-backend [INFO] finished tweaking git repo https://github.com/marcin-5/rust-cr8s-backend [INFO] tweaked toml for git repo https://github.com/marcin-5/rust-cr8s-backend written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/marcin-5/rust-cr8s-backend 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/marcin-5/rust-cr8s-backend 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] 0847e6fd0f92c6206a07884fda375da21a6c789a46326dacced23afdfca8ddb7 [INFO] running `Command { std: "docker" "start" "-a" "0847e6fd0f92c6206a07884fda375da21a6c789a46326dacced23afdfca8ddb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0847e6fd0f92c6206a07884fda375da21a6c789a46326dacced23afdfca8ddb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0847e6fd0f92c6206a07884fda375da21a6c789a46326dacced23afdfca8ddb7", kill_on_drop: false }` [INFO] [stdout] 0847e6fd0f92c6206a07884fda375da21a6c789a46326dacced23afdfca8ddb7 [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] 05b465ddffc7b88402b9bfd70b55ebd5746d2588088726d8d67f14e7e88f6bea [INFO] running `Command { std: "docker" "start" "-a" "05b465ddffc7b88402b9bfd70b55ebd5746d2588088726d8d67f14e7e88f6bea", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Checking bstr v1.12.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking rustix v1.0.7 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking retain_mut v0.1.9 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking whoami v1.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking globset v0.4.16 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Checking scoped-futures v0.1.4 [INFO] [stderr] Checking deunicode v1.6.2 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Checking clap_builder v4.5.40 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking hostname v0.4.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking email-encoding v0.4.1 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking postgres-protocol v0.6.8 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking quoted_printable v0.5.1 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking postgres-types v0.2.9 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.1.0 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling diesel_derives v2.1.4 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking pear v0.2.9 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling rocket_db_pools_codegen v0.2.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking pest v2.8.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking deadpool-runtime v0.1.4 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking deadpool v0.9.5 [INFO] [stderr] Checking deadpool v0.12.2 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking tokio-postgres v0.7.13 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking lettre v0.11.17 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking diesel v2.1.6 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking redis v0.25.4 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.20 [INFO] [stderr] Checking deadpool-redis v0.15.1 [INFO] [stderr] Checking diesel-async v0.4.1 [INFO] [stderr] Checking rocket_db_pools v0.2.0 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | $table.find(id).get_result(c).await [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel_async::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | $table.limit(limit).load(c).await [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel_async::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:97:18 [INFO] [stdout] | [INFO] [stdout] 97 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel_async::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel_async::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel_async::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | $table.find(id).get_result(c).await [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel_async::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | $table.limit(limit).load(c).await [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel_async::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:97:18 [INFO] [stdout] | [INFO] [stdout] 97 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel_async::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel_async::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel_async::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | .load(c) [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] 139 ~ diesel_async::RunQueryDsl::load(crates::table [INFO] [stdout] 140 + .filter(crates::created_at.ge(now - hours_since.hours())), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 139 ~ diesel::RunQueryDsl::load(crates::table [INFO] [stdout] 140 + .filter(crates::created_at.ge(now - hours_since.hours())), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | $table.find(id).get_result(c).await [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 146 | implement_repository!(UserRepository, users::table, User, NewUser, { find }); [INFO] [stdout] | ---------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel_async::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | .get_result(c) [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 `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 154 ~ diesel_async::RunQueryDsl::get_result(users::table [INFO] [stdout] 155 + .filter(users::username.eq(username)), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 154 ~ diesel::RunQueryDsl::get_result(users::table [INFO] [stdout] 155 + .filter(users::username.eq(username)), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:163:34 [INFO] [stdout] | [INFO] [stdout] 163 | let users = users::table.load::(c).await?; [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `T` [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] 163 - let users = users::table.load::(c).await?; [INFO] [stdout] 163 + let users = diesel::RunQueryDsl::load(users::table, c).await?; [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 163 - let users = users::table.load::(c).await?; [INFO] [stdout] 163 + let users = diesel_async::RunQueryDsl::load(users::table, c).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | .load::<(UserRole, Role)>(c) [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] 164 ~ let result = diesel_async::RunQueryDsl::load(user_roles::table [INFO] [stdout] 165 + .inner_join(roles::table), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 164 ~ let result = diesel::RunQueryDsl::load(user_roles::table [INFO] [stdout] 165 + .inner_join(roles::table), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | let result = user_roles::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 165 | | .inner_join(roles::table) [INFO] [stdout] 166 | | .load::<(UserRole, Role)>(c) [INFO] [stdout] 167 | | .await? [INFO] [stdout] | |___________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let users = users::table.load::(c).await?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | Ok(users.into_iter().zip(result).collect()) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `users` an explicit type [INFO] [stdout] | [INFO] [stdout] 163 | let users: /* Type */ = users::table.load::(c).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | .execute(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] 176 - diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))) [INFO] [stdout] 177 - .execute(conn) [INFO] [stdout] 176 + diesel::RunQueryDsl::execute(diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 176 - diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))) [INFO] [stdout] 177 - .execute(conn) [INFO] [stdout] 176 + diesel_async::RunQueryDsl::execute(diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:181:55 [INFO] [stdout] | [INFO] [stdout] 181 | diesel::delete(users::table.find(id)).execute(conn).await [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] 181 - diesel::delete(users::table.find(id)).execute(conn).await [INFO] [stdout] 181 + diesel::RunQueryDsl::execute(diesel::delete(users::table.find(id)), conn).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 181 - diesel::delete(users::table.find(id)).execute(conn).await [INFO] [stdout] 181 + diesel_async::RunQueryDsl::execute(diesel::delete(users::table.find(id)), conn).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:197:22 [INFO] [stdout] | [INFO] [stdout] 197 | .get_result::(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] 195 ~ let user = diesel::RunQueryDsl::get_result(diesel::insert_into(users::table) [INFO] [stdout] 196 + .values(new_user), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 195 ~ let user = diesel_async::RunQueryDsl::get_result(diesel::insert_into(users::table) [INFO] [stdout] 196 + .values(new_user), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:207:22 [INFO] [stdout] | [INFO] [stdout] 207 | .load::(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] 205 ~ let existing_roles = diesel_async::RunQueryDsl::load(roles::table [INFO] [stdout] 206 + .filter(roles::code.eq_any(&role_codes)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 205 ~ let existing_roles = diesel::RunQueryDsl::load(roles::table [INFO] [stdout] 206 + .filter(roles::code.eq_any(&role_codes)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | let existing_roles = roles::table [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | existing_roles.iter().map(|r| r.code.clone()).collect(); [INFO] [stdout] | -------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `existing_roles` an explicit type [INFO] [stdout] | [INFO] [stdout] 205 | let existing_roles: /* Type */ = roles::table [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | .get_results::(conn) [INFO] [stdout] | ^^^^^^^^^^^ multiple `get_results` 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] 224 ~ diesel::RunQueryDsl::get_results(diesel::insert_into(roles::table) [INFO] [stdout] 225 + .values(&roles_to_create), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 224 ~ diesel_async::RunQueryDsl::get_results(diesel::insert_into(roles::table) [INFO] [stdout] 225 + .values(&roles_to_create), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:266:52 [INFO] [stdout] | [INFO] [stdout] 266 | roles::table.filter(roles::id.eq_any(ids)).load(c).await [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] 266 - roles::table.filter(roles::id.eq_any(ids)).load(c).await [INFO] [stdout] 266 + diesel_async::RunQueryDsl::load(roles::table.filter(roles::id.eq_any(ids)), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 266 - roles::table.filter(roles::id.eq_any(ids)).load(c).await [INFO] [stdout] 266 + diesel::RunQueryDsl::load(roles::table.filter(roles::id.eq_any(ids)), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:273:14 [INFO] [stdout] | [INFO] [stdout] 273 | .get_results::(c) [INFO] [stdout] | ^^^^^^^^^^^ multiple `get_results` 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] 272 - let user_roles = UserRole::belonging_to(&user) [INFO] [stdout] 273 - .get_results::(c) [INFO] [stdout] 272 + let user_roles = diesel_async::RunQueryDsl::get_results(UserRole::belonging_to(&user), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 272 - let user_roles = UserRole::belonging_to(&user) [INFO] [stdout] 273 - .get_results::(c) [INFO] [stdout] 272 + let user_roles = diesel::RunQueryDsl::get_results(UserRole::belonging_to(&user), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let user_roles = UserRole::belonging_to(&user) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | let role_ids: Vec = user_roles.iter().map(|ur: &UserRole| ur.role_id).collect(); [INFO] [stdout] | ---------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `user_roles` an explicit type [INFO] [stdout] | [INFO] [stdout] 272 | let user_roles: /* Type */ = UserRole::belonging_to(&user) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | $table.find(id).get_result(c).await [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel_async::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | $table.limit(limit).load(c).await [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel_async::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:97:18 [INFO] [stdout] | [INFO] [stdout] 97 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel_async::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel_async::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] ... [INFO] [stdout] 123 | / implement_repository!( [INFO] [stdout] 124 | | RustaceanRepository, [INFO] [stdout] 125 | | rustaceans::table, [INFO] [stdout] 126 | | Rustacean, [INFO] [stdout] 127 | | NewRustacean, [INFO] [stdout] 128 | | UpdateRustacean [INFO] [stdout] 129 | | ); [INFO] [stdout] | |_- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel_async::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | $table.find(id).get_result(c).await [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel_async::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | $table.limit(limit).load(c).await [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel_async::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 86 - $table.limit(limit).load(c).await [INFO] [stdout] 86 + diesel::RunQueryDsl::load($table.limit(limit), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:97:18 [INFO] [stdout] | [INFO] [stdout] 97 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ diesel_async::RunQueryDsl::get_result(diesel::insert_into($table) [INFO] [stdout] 96 + .values(new_item), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | .get_result(c) [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel_async::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 108 ~ diesel::RunQueryDsl::get_result(diesel::update($table.find(id)) [INFO] [stdout] 109 + .set(&patch), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] ... [INFO] [stdout] 132 | implement_repository!(CrateRepository, crates::table, Crate, NewCrate, UpdateCrate); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 117 - diesel::delete($table.find(id)).execute(c).await [INFO] [stdout] 117 + diesel_async::RunQueryDsl::execute(diesel::delete($table.find(id)), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 141 | .load(c) [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] 139 ~ diesel_async::RunQueryDsl::load(crates::table [INFO] [stdout] 140 + .filter(crates::created_at.ge(now - hours_since.hours())), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 139 ~ diesel::RunQueryDsl::load(crates::table [INFO] [stdout] 140 + .filter(crates::created_at.ge(now - hours_since.hours())), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | $table.find(id).get_result(c).await [INFO] [stdout] | ^^^^^^^^^^ multiple `get_result` found [INFO] [stdout] ... [INFO] [stdout] 146 | implement_repository!(UserRepository, users::table, User, NewUser, { find }); [INFO] [stdout] | ---------------------------------------------------------------------------- in this macro invocation [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] = note: this error originates in the macro `implement_repository` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel_async::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 77 - $table.find(id).get_result(c).await [INFO] [stdout] 77 + diesel::RunQueryDsl::get_result($table.find(id), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | .get_result(c) [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 `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 154 ~ diesel_async::RunQueryDsl::get_result(users::table [INFO] [stdout] 155 + .filter(users::username.eq(username)), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 154 ~ diesel::RunQueryDsl::get_result(users::table [INFO] [stdout] 155 + .filter(users::username.eq(username)), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:163:34 [INFO] [stdout] | [INFO] [stdout] 163 | let users = users::table.load::(c).await?; [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `T` [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] 163 - let users = users::table.load::(c).await?; [INFO] [stdout] 163 + let users = diesel::RunQueryDsl::load(users::table, c).await?; [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 163 - let users = users::table.load::(c).await?; [INFO] [stdout] 163 + let users = diesel_async::RunQueryDsl::load(users::table, c).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:166:14 [INFO] [stdout] | [INFO] [stdout] 166 | .load::<(UserRole, Role)>(c) [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] 164 ~ let result = diesel_async::RunQueryDsl::load(user_roles::table [INFO] [stdout] 165 + .inner_join(roles::table), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 164 ~ let result = diesel::RunQueryDsl::load(user_roles::table [INFO] [stdout] 165 + .inner_join(roles::table), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | let result = user_roles::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 165 | | .inner_join(roles::table) [INFO] [stdout] 166 | | .load::<(UserRole, Role)>(c) [INFO] [stdout] 167 | | .await? [INFO] [stdout] | |___________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let users = users::table.load::(c).await?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | Ok(users.into_iter().zip(result).collect()) [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `users` an explicit type [INFO] [stdout] | [INFO] [stdout] 163 | let users: /* Type */ = users::table.load::(c).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | .execute(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] 176 - diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))) [INFO] [stdout] 177 - .execute(conn) [INFO] [stdout] 176 + diesel::RunQueryDsl::execute(diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 176 - diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))) [INFO] [stdout] 177 - .execute(conn) [INFO] [stdout] 176 + diesel_async::RunQueryDsl::execute(diesel::delete(user_roles::table.filter(user_roles::user_id.eq(id))), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:181:55 [INFO] [stdout] | [INFO] [stdout] 181 | diesel::delete(users::table.find(id)).execute(conn).await [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] 181 - diesel::delete(users::table.find(id)).execute(conn).await [INFO] [stdout] 181 + diesel::RunQueryDsl::execute(diesel::delete(users::table.find(id)), conn).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 181 - diesel::delete(users::table.find(id)).execute(conn).await [INFO] [stdout] 181 + diesel_async::RunQueryDsl::execute(diesel::delete(users::table.find(id)), conn).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:197:22 [INFO] [stdout] | [INFO] [stdout] 197 | .get_result::(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] 195 ~ let user = diesel::RunQueryDsl::get_result(diesel::insert_into(users::table) [INFO] [stdout] 196 + .values(new_user), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 195 ~ let user = diesel_async::RunQueryDsl::get_result(diesel::insert_into(users::table) [INFO] [stdout] 196 + .values(new_user), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:207:22 [INFO] [stdout] | [INFO] [stdout] 207 | .load::(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] 205 ~ let existing_roles = diesel_async::RunQueryDsl::load(roles::table [INFO] [stdout] 206 + .filter(roles::code.eq_any(&role_codes)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 205 ~ let existing_roles = diesel::RunQueryDsl::load(roles::table [INFO] [stdout] 206 + .filter(roles::code.eq_any(&role_codes)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | let existing_roles = roles::table [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | existing_roles.iter().map(|r| r.code.clone()).collect(); [INFO] [stdout] | -------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `existing_roles` an explicit type [INFO] [stdout] | [INFO] [stdout] 205 | let existing_roles: /* Type */ = roles::table [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | .get_results::(conn) [INFO] [stdout] | ^^^^^^^^^^^ multiple `get_results` 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] 224 ~ diesel::RunQueryDsl::get_results(diesel::insert_into(roles::table) [INFO] [stdout] 225 + .values(&roles_to_create), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 224 ~ diesel_async::RunQueryDsl::get_results(diesel::insert_into(roles::table) [INFO] [stdout] 225 + .values(&roles_to_create), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:266:52 [INFO] [stdout] | [INFO] [stdout] 266 | roles::table.filter(roles::id.eq_any(ids)).load(c).await [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] 266 - roles::table.filter(roles::id.eq_any(ids)).load(c).await [INFO] [stdout] 266 + diesel_async::RunQueryDsl::load(roles::table.filter(roles::id.eq_any(ids)), c).await [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 266 - roles::table.filter(roles::id.eq_any(ids)).load(c).await [INFO] [stdout] 266 + diesel::RunQueryDsl::load(roles::table.filter(roles::id.eq_any(ids)), c).await [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/repositories.rs:273:14 [INFO] [stdout] | [INFO] [stdout] 273 | .get_results::(c) [INFO] [stdout] | ^^^^^^^^^^^ multiple `get_results` 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] 272 - let user_roles = UserRole::belonging_to(&user) [INFO] [stdout] 273 - .get_results::(c) [INFO] [stdout] 272 + let user_roles = diesel_async::RunQueryDsl::get_results(UserRole::belonging_to(&user), c) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 272 - let user_roles = UserRole::belonging_to(&user) [INFO] [stdout] 273 - .get_results::(c) [INFO] [stdout] 272 + let user_roles = diesel::RunQueryDsl::get_results(UserRole::belonging_to(&user), c) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/repositories.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let user_roles = UserRole::belonging_to(&user) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | let role_ids: Vec = user_roles.iter().map(|ur: &UserRole| ur.role_id).collect(); [INFO] [stdout] | ---------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `user_roles` an explicit type [INFO] [stdout] | [INFO] [stdout] 272 | let user_roles: /* Type */ = UserRole::belonging_to(&user) [INFO] [stdout] | ++++++++++++ [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] [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 `backend` (lib) due to 26 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `backend` (lib test) due to 26 previous errors [INFO] running `Command { std: "docker" "inspect" "05b465ddffc7b88402b9bfd70b55ebd5746d2588088726d8d67f14e7e88f6bea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05b465ddffc7b88402b9bfd70b55ebd5746d2588088726d8d67f14e7e88f6bea", kill_on_drop: false }` [INFO] [stdout] 05b465ddffc7b88402b9bfd70b55ebd5746d2588088726d8d67f14e7e88f6bea