[INFO] fetching crate truebner-smt100 0.2.1... [INFO] checking truebner-smt100-0.2.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate truebner-smt100 0.2.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate truebner-smt100 0.2.1 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate truebner-smt100 0.2.1 [INFO] finished tweaking crates.io crate truebner-smt100 0.2.1 [INFO] tweaked toml for crates.io crate truebner-smt100 0.2.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e315ddbe3a15957d00a40da808144778edfd47dea8cbe25b6403b3e91741540 [INFO] running `Command { std: "docker" "start" "-a" "5e315ddbe3a15957d00a40da808144778edfd47dea8cbe25b6403b3e91741540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e315ddbe3a15957d00a40da808144778edfd47dea8cbe25b6403b3e91741540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e315ddbe3a15957d00a40da808144778edfd47dea8cbe25b6403b3e91741540", kill_on_drop: false }` [INFO] [stdout] 5e315ddbe3a15957d00a40da808144778edfd47dea8cbe25b6403b3e91741540 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ed68b84fe5d242ef3608a7ed104221e0a1c1a8314253cd0c9d9fc26ff26cfd1 [INFO] running `Command { std: "docker" "start" "-a" "3ed68b84fe5d242ef3608a7ed104221e0a1c1a8314253cd0c9d9fc26ff26cfd1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking smallvec v0.2.1 [INFO] [stderr] Checking take v0.1.0 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking tokio-service v0.1.0 [INFO] [stderr] Checking stream-cancel v0.4.4 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking tokio-core v0.1.18 [INFO] [stderr] Checking tokio-proto v0.1.1 [INFO] [stderr] Checking serialport v3.3.0 [INFO] [stderr] Checking mio-serial v3.3.0 [INFO] [stderr] Checking tokio-serial v3.3.0 [INFO] [stderr] Checking tokio-modbus v0.3.5 [INFO] [stderr] Checking truebner-smt100 v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:260:22 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn broadcast_slave(&self) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 258 | match self.shared_context() { [INFO] [stdout] 259 | Ok(shared_context) => future::Either::A(self::broadcast_slave( [INFO] [stdout] | ________________--------------_______________________- [INFO] [stdout] | | | [INFO] [stdout] | | binding `shared_context` declared here [INFO] [stdout] 260 | | &mut shared_context.borrow_mut(), [INFO] [stdout] | | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 261 | | self.slave, [INFO] [stdout] 262 | | )), [INFO] [stdout] | | -- `shared_context` dropped here while still borrowed [INFO] [stdout] | |_____________| [INFO] [stdout] | argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/modbus/mod.rs:260:22 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn broadcast_slave(&self) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 258 | match self.shared_context() { [INFO] [stdout] 259 | Ok(shared_context) => future::Either::A(self::broadcast_slave( [INFO] [stdout] | _____________________________________________________- [INFO] [stdout] 260 | | &mut shared_context.borrow_mut(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 261 | | self.slave, [INFO] [stdout] 262 | | )), [INFO] [stdout] | | -- temporary value is freed at the end of this statement [INFO] [stdout] | |_____________| [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:273:35 [INFO] [stdout] | [INFO] [stdout] 268 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 272 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 273 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 274 | context.set_slave(self.slave); [INFO] [stdout] 275 | future::Either::A(self::read_temperature(&mut context, timeout)) [INFO] [stdout] | --------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 276 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:275:58 [INFO] [stdout] | [INFO] [stdout] 268 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 273 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 274 | context.set_slave(self.slave); [INFO] [stdout] 275 | future::Either::A(self::read_temperature(&mut context, timeout)) [INFO] [stdout] | -----------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 276 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:260:22 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn broadcast_slave(&self) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 258 | match self.shared_context() { [INFO] [stdout] 259 | Ok(shared_context) => future::Either::A(self::broadcast_slave( [INFO] [stdout] | ________________--------------_______________________- [INFO] [stdout] | | | [INFO] [stdout] | | binding `shared_context` declared here [INFO] [stdout] 260 | | &mut shared_context.borrow_mut(), [INFO] [stdout] | | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 261 | | self.slave, [INFO] [stdout] 262 | | )), [INFO] [stdout] | | -- `shared_context` dropped here while still borrowed [INFO] [stdout] | |_____________| [INFO] [stdout] | argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/modbus/mod.rs:260:22 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn broadcast_slave(&self) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 258 | match self.shared_context() { [INFO] [stdout] 259 | Ok(shared_context) => future::Either::A(self::broadcast_slave( [INFO] [stdout] | _____________________________________________________- [INFO] [stdout] 260 | | &mut shared_context.borrow_mut(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 261 | | self.slave, [INFO] [stdout] 262 | | )), [INFO] [stdout] | | -- temporary value is freed at the end of this statement [INFO] [stdout] | |_____________| [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:287:35 [INFO] [stdout] | [INFO] [stdout] 282 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 286 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 287 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 288 | context.set_slave(self.slave); [INFO] [stdout] 289 | future::Either::A(self::read_water_content(&mut context, timeout)) [INFO] [stdout] | ----------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 290 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:289:60 [INFO] [stdout] | [INFO] [stdout] 282 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 287 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 288 | context.set_slave(self.slave); [INFO] [stdout] 289 | future::Either::A(self::read_water_content(&mut context, timeout)) [INFO] [stdout] | -------------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 290 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:273:35 [INFO] [stdout] | [INFO] [stdout] 268 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 272 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 273 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 274 | context.set_slave(self.slave); [INFO] [stdout] 275 | future::Either::A(self::read_temperature(&mut context, timeout)) [INFO] [stdout] | --------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 276 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:275:58 [INFO] [stdout] | [INFO] [stdout] 268 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 273 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 274 | context.set_slave(self.slave); [INFO] [stdout] 275 | future::Either::A(self::read_temperature(&mut context, timeout)) [INFO] [stdout] | -----------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 276 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:301:35 [INFO] [stdout] | [INFO] [stdout] 296 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 300 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 301 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 302 | context.set_slave(self.slave); [INFO] [stdout] 303 | future::Either::A(self::read_permittivity(&mut context, timeout)) [INFO] [stdout] | ---------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 304 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:303:59 [INFO] [stdout] | [INFO] [stdout] 296 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 301 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 302 | context.set_slave(self.slave); [INFO] [stdout] 303 | future::Either::A(self::read_permittivity(&mut context, timeout)) [INFO] [stdout] | ------------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 304 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:312:35 [INFO] [stdout] | [INFO] [stdout] 309 | pub fn read_raw_counts(&self, timeout: Duration) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 310 | match self.shared_context() { [INFO] [stdout] 311 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 312 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 313 | context.set_slave(self.slave); [INFO] [stdout] 314 | future::Either::A(self::read_raw_counts(&mut context, timeout)) [INFO] [stdout] | -------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 315 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:287:35 [INFO] [stdout] | [INFO] [stdout] 282 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 286 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 287 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 288 | context.set_slave(self.slave); [INFO] [stdout] 289 | future::Either::A(self::read_water_content(&mut context, timeout)) [INFO] [stdout] | ----------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 290 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:314:57 [INFO] [stdout] | [INFO] [stdout] 309 | pub fn read_raw_counts(&self, timeout: Duration) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 312 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 313 | context.set_slave(self.slave); [INFO] [stdout] 314 | future::Either::A(self::read_raw_counts(&mut context, timeout)) [INFO] [stdout] | ----------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 315 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:289:60 [INFO] [stdout] | [INFO] [stdout] 282 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 287 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 288 | context.set_slave(self.slave); [INFO] [stdout] 289 | future::Either::A(self::read_water_content(&mut context, timeout)) [INFO] [stdout] | -------------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 290 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:301:35 [INFO] [stdout] | [INFO] [stdout] 296 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 300 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 301 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 302 | context.set_slave(self.slave); [INFO] [stdout] 303 | future::Either::A(self::read_permittivity(&mut context, timeout)) [INFO] [stdout] | ---------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 304 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:303:59 [INFO] [stdout] | [INFO] [stdout] 296 | &self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 301 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 302 | context.set_slave(self.slave); [INFO] [stdout] 303 | future::Either::A(self::read_permittivity(&mut context, timeout)) [INFO] [stdout] | ------------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 304 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `shared_context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:312:35 [INFO] [stdout] | [INFO] [stdout] 309 | pub fn read_raw_counts(&self, timeout: Duration) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 310 | match self.shared_context() { [INFO] [stdout] 311 | Ok(shared_context) => { [INFO] [stdout] | -------------- binding `shared_context` declared here [INFO] [stdout] 312 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 313 | context.set_slave(self.slave); [INFO] [stdout] 314 | future::Either::A(self::read_raw_counts(&mut context, timeout)) [INFO] [stdout] | -------------------------------------------- argument requires that `shared_context` is borrowed for `'1` [INFO] [stdout] 315 | } [INFO] [stdout] | - `shared_context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `context` does not live long enough [INFO] [stdout] --> src/modbus/mod.rs:314:57 [INFO] [stdout] | [INFO] [stdout] 309 | pub fn read_raw_counts(&self, timeout: Duration) -> impl Future { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 312 | let mut context = shared_context.borrow_mut(); [INFO] [stdout] | ----------- binding `context` declared here [INFO] [stdout] 313 | context.set_slave(self.slave); [INFO] [stdout] 314 | future::Either::A(self::read_raw_counts(&mut context, timeout)) [INFO] [stdout] | ----------------------^^^^^^^^^^^^---------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `context` is borrowed for `'1` [INFO] [stdout] 315 | } [INFO] [stdout] | - `context` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0597, E0716. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `truebner-smt100` (lib) due to 11 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `truebner-smt100` (lib test) due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "3ed68b84fe5d242ef3608a7ed104221e0a1c1a8314253cd0c9d9fc26ff26cfd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ed68b84fe5d242ef3608a7ed104221e0a1c1a8314253cd0c9d9fc26ff26cfd1", kill_on_drop: false }` [INFO] [stdout] 3ed68b84fe5d242ef3608a7ed104221e0a1c1a8314253cd0c9d9fc26ff26cfd1