[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] checking kasandell/TransactionHell against master#4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 for pr-134272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkasandell%2FTransactionHell" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kasandell/TransactionHell on toolchain 4847d6a9d07d4be9ba3196f6ad444af2d7bdde72 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-4-tc1/source/Cargo.toml [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" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f28aec2a1f3c29704cc4f01fe472e42f70ee3496dd37d3bf182f3415187b2a39 [INFO] running `Command { std: "docker" "start" "-a" "f28aec2a1f3c29704cc4f01fe472e42f70ee3496dd37d3bf182f3415187b2a39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f28aec2a1f3c29704cc4f01fe472e42f70ee3496dd37d3bf182f3415187b2a39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f28aec2a1f3c29704cc4f01fe472e42f70ee3496dd37d3bf182f3415187b2a39", kill_on_drop: false }` [INFO] [stdout] f28aec2a1f3c29704cc4f01fe472e42f70ee3496dd37d3bf182f3415187b2a39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+4847d6a9d07d4be9ba3196f6ad444af2d7bdde72" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 300aec33dba2cf2fd5d2d989c17e886110e640f0854759a1217ad19807197440 [INFO] running `Command { std: "docker" "start" "-a" "300aec33dba2cf2fd5d2d989c17e886110e640f0854759a1217ad19807197440", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking unicode-properties v0.1.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Checking siphasher v0.3.11 [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 syn v1.0.109 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking whoami v1.5.1 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking scoped-futures v0.1.3 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking postgres-protocol v0.6.6 [INFO] [stderr] Checking 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] Checking tokio v1.37.0 [INFO] [stderr] Checking 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] Checking diesel v2.1.6 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking bb8 v0.8.3 [INFO] [stderr] Checking tokio-postgres v0.7.10 [INFO] [stderr] Checking serde_with v3.8.1 [INFO] [stderr] Checking diesel-async v0.4.1 [INFO] [stderr] Checking 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)]` 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: 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)]` 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)]` on by default [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `txn` does not live long enough [INFO] [stdout] --> src/transaction.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 39 | let mut txn = Transaction::new(_conn); [INFO] [stdout] | ------- binding `txn` declared here [INFO] [stdout] 40 | let result = f(&mut txn); [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 45 | }.scope_boxed()).await?; [INFO] [stdout] | - ----------- borrow later used by call [INFO] [stdout] | | [INFO] [stdout] | `txn` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `txn` does not live long enough [INFO] [stdout] --> src/transaction.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 39 | let mut txn = Transaction::new(_conn); [INFO] [stdout] | ------- binding `txn` declared here [INFO] [stdout] 40 | let result = f(&mut txn); [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 45 | }.scope_boxed()).await?; [INFO] [stdout] | - ----------- borrow later used by call [INFO] [stdout] | | [INFO] [stdout] | `txn` dropped here while still borrowed [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] 20 | pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] | ----------------- help: add explicit lifetime `'a` to the type of `conn`: `&'a mut bb8::PooledConnection<'_, AsyncDieselConnectionManager>` [INFO] [stdout] 21 | / Self { [INFO] [stdout] 22 | | conn: conn [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________^ lifetime `'a` required [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] 20 | pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] | ----------------- help: add explicit lifetime `'a` to the type of `conn`: `&mut bb8::PooledConnection<'a, AsyncDieselConnectionManager>` [INFO] [stdout] 21 | / Self { [INFO] [stdout] 22 | | conn: conn [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________^ lifetime `'a` required [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] 20 | pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] | ----------------- help: add explicit lifetime `'a` to the type of `conn`: `&mut bb8::PooledConnection<'a, AsyncDieselConnectionManager>` [INFO] [stdout] 21 | Self { [INFO] [stdout] 22 | conn: conn [INFO] [stdout] | ^^^^ lifetime `'a` required [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] = note: `#[warn(unused_variables)]` on by default [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] 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] [INFO] [stdout] error[E0597]: `name_a` does not live long enough [INFO] [stdout] --> src/main.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 18 | let name_a = "Kyle"; [INFO] [stdout] | ------ binding `name_a` declared here [INFO] [stdout] 19 | let name_b = "Not Kyle"; [INFO] [stdout] 20 | let user_a = transactional::(|txn| async move { [INFO] [stdout] | ______________________________________________________-----_- [INFO] [stdout] | | | [INFO] [stdout] | | value captured here [INFO] [stdout] 21 | | let user = User::insert(txn, InsertableUser { [INFO] [stdout] 22 | | name: name_a [INFO] [stdout] | | ^^^^^^ borrowed value does not live long enough [INFO] [stdout] 23 | | }).await?; [INFO] [stdout] 24 | | Ok(user) [INFO] [stdout] 25 | | }.scope_boxed()).await.expect("creates user"); [INFO] [stdout] | |___________________- returning this value requires that `name_a` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 44 | } [INFO] [stdout] | - `name_a` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `name_b` does not live long enough [INFO] [stdout] --> src/main.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 19 | let name_b = "Not Kyle"; [INFO] [stdout] | ------ binding `name_b` declared here [INFO] [stdout] ... [INFO] [stdout] 30 | let failure: Result = transactional(|txn| async move { [INFO] [stdout] | __________________________________________________________-----_- [INFO] [stdout] | | | [INFO] [stdout] | | value captured here [INFO] [stdout] 31 | | let user = User::insert(txn, InsertableUser { [INFO] [stdout] 32 | | name: name_b [INFO] [stdout] | | ^^^^^^ borrowed value does not live long enough [INFO] [stdout] 33 | | }).await?; [INFO] [stdout] ... | [INFO] [stdout] 36 | | Err(RollbackTransaction).map_err(DataError::from) [INFO] [stdout] 37 | | }.scope_boxed()).await; [INFO] [stdout] | |___________________- returning this value requires that `name_b` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 44 | } [INFO] [stdout] | - `name_b` dropped here while still borrowed [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] 20 | pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] | ----------------- help: add explicit lifetime `'a` to the type of `conn`: `&'a mut bb8::PooledConnection<'_, AsyncDieselConnectionManager>` [INFO] [stdout] 21 | / Self { [INFO] [stdout] 22 | | conn: conn [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________^ lifetime `'a` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0597, E0621. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0597`. [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] 20 | pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] | ----------------- help: add explicit lifetime `'a` to the type of `conn`: `&mut bb8::PooledConnection<'a, AsyncDieselConnectionManager>` [INFO] [stdout] 21 | / Self { [INFO] [stdout] 22 | | conn: conn [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________^ lifetime `'a` required [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] 20 | pub fn new(conn: &mut DbConnection) -> Self{ [INFO] [stdout] | ----------------- help: add explicit lifetime `'a` to the type of `conn`: `&mut bb8::PooledConnection<'a, AsyncDieselConnectionManager>` [INFO] [stdout] 21 | Self { [INFO] [stdout] 22 | conn: conn [INFO] [stdout] | ^^^^ lifetime `'a` required [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] = note: `#[warn(unused_variables)]` on by default [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] 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] [INFO] [stdout] error[E0597]: `name_a` does not live long enough [INFO] [stdout] --> src/main.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 18 | let name_a = "Kyle"; [INFO] [stdout] | ------ binding `name_a` declared here [INFO] [stdout] 19 | let name_b = "Not Kyle"; [INFO] [stdout] 20 | let user_a = transactional::(|txn| async move { [INFO] [stdout] | ______________________________________________________-----_- [INFO] [stdout] | | | [INFO] [stdout] | | value captured here [INFO] [stdout] 21 | | let user = User::insert(txn, InsertableUser { [INFO] [stdout] 22 | | name: name_a [INFO] [stdout] | | ^^^^^^ borrowed value does not live long enough [INFO] [stdout] 23 | | }).await?; [INFO] [stdout] 24 | | Ok(user) [INFO] [stdout] 25 | | }.scope_boxed()).await.expect("creates user"); [INFO] [stdout] | |___________________- returning this value requires that `name_a` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 44 | } [INFO] [stdout] | - `name_a` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `name_b` does not live long enough [INFO] [stdout] --> src/main.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 19 | let name_b = "Not Kyle"; [INFO] [stdout] | ------ binding `name_b` declared here [INFO] [stdout] ... [INFO] [stdout] 30 | let failure: Result = transactional(|txn| async move { [INFO] [stdout] | __________________________________________________________-----_- [INFO] [stdout] | | | [INFO] [stdout] | | value captured here [INFO] [stdout] 31 | | let user = User::insert(txn, InsertableUser { [INFO] [stdout] 32 | | name: name_b [INFO] [stdout] | | ^^^^^^ borrowed value does not live long enough [INFO] [stdout] 33 | | }).await?; [INFO] [stdout] ... | [INFO] [stdout] 36 | | Err(RollbackTransaction).map_err(DataError::from) [INFO] [stdout] 37 | | }.scope_boxed()).await; [INFO] [stdout] | |___________________- returning this value requires that `name_b` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 44 | } [INFO] [stdout] | - `name_b` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `transaction_hell` (bin "transaction_hell") due to 6 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0597, E0621. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `transaction_hell` (bin "transaction_hell" test) due to 6 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "300aec33dba2cf2fd5d2d989c17e886110e640f0854759a1217ad19807197440", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "300aec33dba2cf2fd5d2d989c17e886110e640f0854759a1217ad19807197440", kill_on_drop: false }` [INFO] [stdout] 300aec33dba2cf2fd5d2d989c17e886110e640f0854759a1217ad19807197440