[INFO] cloning repository https://github.com/veeg/rewrite-function [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/veeg/rewrite-function" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveeg%2Frewrite-function", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveeg%2Frewrite-function'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b7e0c3f9a525c196a67faa4bb2f07cf607608f54 [INFO] checking veeg/rewrite-function against try#0c70cfbec949d241375e31c5a42066be70c720fc for pr-149681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveeg%2Frewrite-function" "/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/veeg/rewrite-function [INFO] finished tweaking git repo https://github.com/veeg/rewrite-function [INFO] tweaked toml for git repo https://github.com/veeg/rewrite-function written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/veeg/rewrite-function on toolchain 0c70cfbec949d241375e31c5a42066be70c720fc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c70cfbec949d241375e31c5a42066be70c720fc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/veeg/rewrite-function 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" "+0c70cfbec949d241375e31c5a42066be70c720fc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crc v3.0.1 [INFO] [stderr] Downloaded sqlformat v0.2.3 [INFO] [stderr] Downloaded atomic-write-file v0.1.2 [INFO] [stderr] Downloaded sqlx-macros v0.7.3 [INFO] [stderr] Downloaded whoami v1.4.1 [INFO] [stderr] Downloaded sqlx-macros-core v0.7.3 [INFO] [stderr] Downloaded sqlx-core v0.7.3 [INFO] [stderr] Downloaded sqlx-mysql v0.7.3 [INFO] [stderr] Downloaded sqlx-sqlite v0.7.3 [INFO] [stderr] Downloaded sqlx-postgres v0.7.3 [INFO] [stderr] Downloaded serde_json v1.0.112 [INFO] [stderr] Downloaded sqlx v0.7.3 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0c70cfbec949d241375e31c5a42066be70c720fc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc9fb3b80585863c36d71628cfed45ed39a8b8a8adbef3ad0c8152f9f151b584 [INFO] running `Command { std: "docker" "start" "-a" "bc9fb3b80585863c36d71628cfed45ed39a8b8a8adbef3ad0c8152f9f151b584", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc9fb3b80585863c36d71628cfed45ed39a8b8a8adbef3ad0c8152f9f151b584", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc9fb3b80585863c36d71628cfed45ed39a8b8a8adbef3ad0c8152f9f151b584", kill_on_drop: false }` [INFO] [stdout] bc9fb3b80585863c36d71628cfed45ed39a8b8a8adbef3ad0c8152f9f151b584 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0c70cfbec949d241375e31c5a42066be70c720fc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 814ce76a8482b1236e6ca68e144e2e76ea363add58ab75b83e7eacd118691730 [INFO] running `Command { std: "docker" "start" "-a" "814ce76a8482b1236e6ca68e144e2e76ea363add58ab75b83e7eacd118691730", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling serde_json v1.0.112 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rustix v0.38.30 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling indexmap v2.2.0 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Compiling atomic-write-file v0.1.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling rewrite-impl v0.1.0 (/opt/rustwide/workdir/impl) [INFO] [stdout] warning: unused variable: `local` [INFO] [stdout] --> impl/src/expand.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | Stmt::Local(local) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_local` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rewrite-root v0.1.0 (/opt/rustwide/workdir/root) [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stdout] warning: unused variable: `local` [INFO] [stdout] --> impl/src/expand.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | Stmt::Local(local) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_local` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local` [INFO] [stdout] --> impl/src/expand.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | Stmt::Local(local) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_local` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Checking sqlx-core v0.7.3 [INFO] [stderr] Checking sqlx-sqlite v0.7.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.3 [INFO] [stderr] Compiling sqlx-macros v0.7.3 [INFO] [stderr] Checking sqlx v0.7.3 [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> root/tests/dependency.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | let mut pool = SqlitePoolOptions::connect("sqlite://memory:").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------------ argument #1 of type `PoolOptions` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/pool/options.rs:481:18 [INFO] [stdout] | [INFO] [stdout] 481 | pub async fn connect(self, url: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 6 | let mut pool = SqlitePoolOptions::connect(/* PoolOptions */, "sqlite://memory:").await.unwrap(); [INFO] [stdout] | ++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `sql` found for struct `Query<'q, DB, A>` in the current scope [INFO] [stdout] --> root/tests/dependency.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[dependency] [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Query<'_, _, _>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/executor.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | fn sql(&self) -> &'q str; [INFO] [stdout] | --- the method is available for `Query<'_, _, _>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: this error originates in the attribute macro `dependency` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: trait `Execute` which provides `sql` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use sqlx::Execute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&mut Pool: Executor<'_>` is not satisfied [INFO] [stdout] --> root/tests/dependency.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | sqlx::query("test").execute(&mut pool).await [INFO] [stdout] | ------- ^^^^^^^^^ the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] but it is implemented for `&Pool<_>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/pool/executor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl<'p, DB: Database> Executor<'p> for &'_ Pool [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | for<'c> &'c mut DB::Connection: Executor<'c, Database = DB>, [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] = note: `Executor<'_>` is implemented for `&Pool`, but not for `&mut Pool` [INFO] [stdout] note: required by a bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/query.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn execute<'e, 'c: 'e, E>(self, executor: E) -> Result [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 151 | E: Executor<'c, Database = DB>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `dependency` found for opaque type `impl Future::QueryResult, sqlx::Error>>` in the current scope [INFO] [stdout] --> root/tests/dependency.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[dependency] [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `impl Future::QueryResult, sqlx::Error>>` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `dependency` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> root/tests/dependency.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | let mut pool = SqlitePoolOptions::connect("sqlite://memory:").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------------ argument #1 of type `PoolOptions` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/pool/options.rs:481:18 [INFO] [stdout] | [INFO] [stdout] 481 | pub async fn connect(self, url: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 13 | let mut pool = SqlitePoolOptions::connect(/* PoolOptions */, "sqlite://memory:").await.unwrap(); [INFO] [stdout] | ++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&mut Pool: Executor<'_>` is not satisfied [INFO] [stdout] --> root/tests/dependency.rs:15:43 [INFO] [stdout] | [INFO] [stdout] 15 | let res = sqlx::query("test").execute(&mut pool).await; [INFO] [stdout] | ------- ^^^^^^^^^ the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] but it is implemented for `&Pool<_>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/pool/executor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl<'p, DB: Database> Executor<'p> for &'_ Pool [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | for<'c> &'c mut DB::Connection: Executor<'c, Database = DB>, [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] = note: `Executor<'_>` is implemented for `&Pool`, but not for `&mut Pool` [INFO] [stdout] note: required by a bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/query.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn execute<'e, 'c: 'e, E>(self, executor: E) -> Result [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 151 | E: Executor<'c, Database = DB>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&mut Pool: Executor<'_>` is not satisfied [INFO] [stdout] --> root/tests/dependency.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | let res = sqlx::query("test").execute(&mut pool).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] | [INFO] [stdout] help: the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] but it is implemented for `&Pool<_>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/pool/executor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl<'p, DB: Database> Executor<'p> for &'_ Pool [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | for<'c> &'c mut DB::Connection: Executor<'c, Database = DB>, [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] = note: `Executor<'_>` is implemented for `&Pool`, but not for `&mut Pool` [INFO] [stdout] note: required by a bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/query.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn execute<'e, 'c: 'e, E>(self, executor: E) -> Result [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 151 | E: Executor<'c, Database = DB>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&mut Pool: Executor<'_>` is not satisfied [INFO] [stdout] --> root/tests/dependency.rs:15:54 [INFO] [stdout] | [INFO] [stdout] 15 | let res = sqlx::query("test").execute(&mut pool).await; [INFO] [stdout] | ^^^^^ the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] | [INFO] [stdout] help: the trait `Executor<'_>` is not implemented for `&mut Pool` [INFO] [stdout] but it is implemented for `&Pool<_>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/pool/executor.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl<'p, DB: Database> Executor<'p> for &'_ Pool [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | for<'c> &'c mut DB::Connection: Executor<'c, Database = DB>, [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] = note: `Executor<'_>` is implemented for `&Pool`, but not for `&mut Pool` [INFO] [stdout] note: required by a bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.7.3/src/query.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn execute<'e, 'c: 'e, E>(self, executor: E) -> Result [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 151 | E: Executor<'c, Database = DB>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Query::<'q, DB, A>::execute` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rewrite-root` (test "dependency") due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "814ce76a8482b1236e6ca68e144e2e76ea363add58ab75b83e7eacd118691730", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "814ce76a8482b1236e6ca68e144e2e76ea363add58ab75b83e7eacd118691730", kill_on_drop: false }` [INFO] [stdout] 814ce76a8482b1236e6ca68e144e2e76ea363add58ab75b83e7eacd118691730