[INFO] cloning repository https://github.com/kasandell/TransactionHell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kasandell/TransactionHell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkasandell%2FTransactionHell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkasandell%2FTransactionHell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a9925df33e2ccecebee62595de2efbbb175d395 [INFO] testing kasandell/TransactionHell against try#a7ee93192a766fb0dafa23def7154fc03cfcfc3e for pr-146989 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkasandell%2FTransactionHell" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kasandell/TransactionHell [INFO] finished tweaking git repo https://github.com/kasandell/TransactionHell [INFO] tweaked toml for git repo https://github.com/kasandell/TransactionHell written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kasandell/TransactionHell on toolchain a7ee93192a766fb0dafa23def7154fc03cfcfc3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kasandell/TransactionHell 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" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing kasandell/TransactionHell against try#a7ee93192a766fb0dafa23def7154fc03cfcfc3e for pr-146989 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkasandell%2FTransactionHell" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kasandell/TransactionHell [INFO] finished tweaking git repo https://github.com/kasandell/TransactionHell [INFO] tweaked toml for git repo https://github.com/kasandell/TransactionHell written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kasandell/TransactionHell on toolchain a7ee93192a766fb0dafa23def7154fc03cfcfc3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kasandell/TransactionHell 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" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "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 darling_macro v0.20.9 [INFO] [stderr] Downloaded postgres-types v0.2.6 [INFO] [stderr] Downloaded darling v0.20.9 [INFO] [stderr] Downloaded pq-sys v0.4.8 [INFO] [stderr] Downloaded bb8 v0.8.3 [INFO] [stderr] Downloaded serde_with_macros v3.8.1 [INFO] [stderr] Downloaded postgres-protocol v0.6.6 [INFO] [stderr] Downloaded tokio-postgres v0.7.10 [INFO] [stderr] Downloaded darling_core v0.20.9 [INFO] [stderr] Downloaded cc v1.0.98 [INFO] [stderr] Downloaded proc-macro2 v1.0.84 [INFO] [stderr] Downloaded serde_with v3.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7cb9338586c549b14bbf933d709b66826639b016d1a4cace1cc9a080ce469e90 [INFO] running `Command { std: "docker" "start" "-a" "7cb9338586c549b14bbf933d709b66826639b016d1a4cace1cc9a080ce469e90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7cb9338586c549b14bbf933d709b66826639b016d1a4cace1cc9a080ce469e90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cb9338586c549b14bbf933d709b66826639b016d1a4cace1cc9a080ce469e90", kill_on_drop: false }` [INFO] [stdout] 7cb9338586c549b14bbf933d709b66826639b016d1a4cace1cc9a080ce469e90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7ee93192a766fb0dafa23def7154fc03cfcfc3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91a6dac81139ceed30561ce984ccc172a8a27257cc28a823af865135c5a114b5 [INFO] running `Command { std: "docker" "start" "-a" "91a6dac81139ceed30561ce984ccc172a8a27257cc28a823af865135c5a114b5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling unicode-properties v0.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling scoped-futures v0.1.3 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling postgres-protocol v0.6.6 [INFO] [stderr] Compiling postgres-types v0.2.6 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling darling_core v0.20.9 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.1.0 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling diesel_derives v2.1.4 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling darling_macro v0.20.9 [INFO] [stderr] Compiling darling v0.20.9 [INFO] [stderr] Compiling serde_with_macros v3.8.1 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling bb8 v0.8.3 [INFO] [stderr] Compiling tokio-postgres v0.7.10 [INFO] [stderr] Compiling diesel v2.1.6 [INFO] [stderr] Compiling serde_with v3.8.1 [INFO] [stderr] Compiling diesel-async v0.4.1 [INFO] [stderr] Compiling transaction_hell v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `diesel::result::DatabaseErrorKind` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::result::DatabaseErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/error.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DatabaseErrorKind` [INFO] [stdout] --> src/error.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::result::{DatabaseErrorKind, Error as DieselError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error as SerdeError` and `json` [INFO] [stdout] --> src/error.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::{json, Error as SerdeError}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut` and `Deref` [INFO] [stdout] --> src/transaction.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Deref, DerefMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/db.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut builder = Pool::builder(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `txn` [INFO] [stdout] --> src/transaction.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | let result = conn.transaction(move |_conn| { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 39 | | let mut txn = Transaction::new(_conn); [INFO] [stdout] 40 | | let result = f(&mut txn); [INFO] [stdout] | | -------- `txn` is borrowed here [INFO] [stdout] 41 | | Box::pin(async { [INFO] [stdout] ... | [INFO] [stdout] 44 | | }) [INFO] [stdout] 45 | | }.scope_boxed()).await?; [INFO] [stdout] | |___________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `conn` [INFO] [stdout] --> src/transaction.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | / Self { [INFO] [stdout] 22 | | conn: conn [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________^ lifetime `'a` required [INFO] [stdout] | [INFO] [stdout] help: add explicit lifetime `'a` to the type of `conn` [INFO] [stdout] | [INFO] [stdout] 20 - pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] 20 + pub fn new(conn: &'a mut bb8::PooledConnection<'_, AsyncDieselConnectionManager>) -> Self{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `conn` [INFO] [stdout] --> src/transaction.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | / Self { [INFO] [stdout] 22 | | conn: conn [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________^ lifetime `'a` required [INFO] [stdout] | [INFO] [stdout] help: add explicit lifetime `'a` to the type of `conn` [INFO] [stdout] | [INFO] [stdout] 20 - pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] 20 + pub fn new(conn: &mut bb8::PooledConnection<'a, AsyncDieselConnectionManager>) -> Self{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `conn` [INFO] [stdout] --> src/transaction.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | conn: conn [INFO] [stdout] | ^^^^ lifetime `'a` required [INFO] [stdout] | [INFO] [stdout] help: add explicit lifetime `'a` to the type of `conn` [INFO] [stdout] | [INFO] [stdout] 20 - pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] 20 + pub fn new(conn: &mut bb8::PooledConnection<'a, AsyncDieselConnectionManager>) -> Self{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let user = User::insert(txn, InsertableUser { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `failure` [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let failure: Result = transactional(|txn| async move { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_failure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | Ok(user) => println!("Should not hit this branch"), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0515, E0621. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `transaction_hell` (bin "transaction_hell") due to 4 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "91a6dac81139ceed30561ce984ccc172a8a27257cc28a823af865135c5a114b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91a6dac81139ceed30561ce984ccc172a8a27257cc28a823af865135c5a114b5", kill_on_drop: false }` [INFO] [stdout] 91a6dac81139ceed30561ce984ccc172a8a27257cc28a823af865135c5a114b5