[INFO] fetching crate kasa_exporter 0.1.0... [INFO] checking kasa_exporter-0.1.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate kasa_exporter 0.1.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate kasa_exporter 0.1.0 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 kasa_exporter 0.1.0 [INFO] finished tweaking crates.io crate kasa_exporter 0.1.0 [INFO] tweaked toml for crates.io crate kasa_exporter 0.1.0 written to /workspace/builds/worker-0-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-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb3f4aedc7fbe7487ab695fbf4a2a95f74026a8099c412a11573a66c47735b18 [INFO] running `Command { std: "docker" "start" "-a" "fb3f4aedc7fbe7487ab695fbf4a2a95f74026a8099c412a11573a66c47735b18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb3f4aedc7fbe7487ab695fbf4a2a95f74026a8099c412a11573a66c47735b18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb3f4aedc7fbe7487ab695fbf4a2a95f74026a8099c412a11573a66c47735b18", kill_on_drop: false }` [INFO] [stdout] fb3f4aedc7fbe7487ab695fbf4a2a95f74026a8099c412a11573a66c47735b18 [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 169aba596cc6bd495b369e94bf700733236ba172274c146bccce415bf01b812d [INFO] running `Command { std: "docker" "start" "-a" "169aba596cc6bd495b369e94bf700733236ba172274c146bccce415bf01b812d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling hyper v0.12.36 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling prometheus v0.4.2 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking quick-error v0.2.2 [INFO] [stderr] Checking spin v0.4.10 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking hyper-tls v0.3.2 [INFO] [stderr] Checking kasa_exporter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error_chain::error_chain_processing` [INFO] [stdout] --> src/kasa/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use error_chain::error_chain_processing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::impl_error_chain_kind` [INFO] [stdout] --> src/kasa/error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use error_chain::impl_error_chain_kind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::impl_error_chain_processed` [INFO] [stdout] --> src/kasa/error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use error_chain::impl_error_chain_processed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::impl_extract_backtrace` [INFO] [stdout] --> src/kasa/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use error_chain::impl_extract_backtrace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::error_chain_processing` [INFO] [stdout] --> src/kasa/error.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use error_chain::error_chain_processing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::impl_error_chain_kind` [INFO] [stdout] --> src/kasa/error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use error_chain::impl_error_chain_kind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::impl_error_chain_processed` [INFO] [stdout] --> src/kasa/error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use error_chain::impl_error_chain_processed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::impl_extract_backtrace` [INFO] [stdout] --> src/kasa/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use error_chain::impl_extract_backtrace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/exporter/mod.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | ) -> Box, Error = hyper::Error> + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 60 | ) -> Box, Error = hyper::Error> + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/exporter/mod.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | ) -> Box, Error = hyper::Error> + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 60 | ) -> Box, Error = hyper::Error> + Send> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/exporter/mod.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 69 | client: Arc>, [INFO] [stdout] | ------ variable defined here [INFO] [stdout] ... [INFO] [stdout] 79 | .and_then(move |device| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] 80 | client [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________________variable captured here [INFO] [stdout] | | [INFO] [stdout] 81 | | .emeter(&device.device_id) [INFO] [stdout] 82 | | .map(|emeter| (device, emeter)) [INFO] [stdout] | |___________________________________________________________^ returns a closure that contains a reference to a captured variable, which then escapes the closure body [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] help: consider adding 'move' keyword before the nested closure [INFO] [stdout] | [INFO] [stdout] 82 | .map(move |emeter| (device, emeter)) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/exporter/mod.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 69 | client: Arc>, [INFO] [stdout] | ------ variable defined here [INFO] [stdout] ... [INFO] [stdout] 79 | .and_then(move |device| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] 80 | client [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________________variable captured here [INFO] [stdout] | | [INFO] [stdout] 81 | | .emeter(&device.device_id) [INFO] [stdout] 82 | | .map(|emeter| (device, emeter)) [INFO] [stdout] | |___________________________________________________________^ returns a closure that contains a reference to a captured variable, which then escapes the closure body [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] help: consider adding 'move' keyword before the nested closure [INFO] [stdout] | [INFO] [stdout] 82 | .map(move |emeter| (device, emeter)) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `device.device_id` [INFO] [stdout] --> src/exporter/mod.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | / client [INFO] [stdout] 81 | | .emeter(&device.device_id) [INFO] [stdout] | | ----------------- `device.device_id` is borrowed here [INFO] [stdout] 82 | | .map(|emeter| (device, emeter)) [INFO] [stdout] | |___________________________________________________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `device.device_id` [INFO] [stdout] --> src/exporter/mod.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | / client [INFO] [stdout] 81 | | .emeter(&device.device_id) [INFO] [stdout] | | ----------------- `device.device_id` is borrowed here [INFO] [stdout] 82 | | .map(|emeter| (device, emeter)) [INFO] [stdout] | |___________________________________________________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `device` because it is borrowed [INFO] [stdout] --> src/exporter/mod.rs:82:34 [INFO] [stdout] | [INFO] [stdout] 79 | .and_then(move |device| { [INFO] [stdout] | ------- return type of closure `futures::Map, [closure@src/exporter/mod.rs:82:34: 82:42]>` contains a lifetime `'2` [INFO] [stdout] | | [INFO] [stdout] | binding `device` declared here [INFO] [stdout] 80 | / client [INFO] [stdout] 81 | | .emeter(&device.device_id) [INFO] [stdout] | | ----------------- borrow of `device.device_id` occurs here [INFO] [stdout] 82 | | .map(|emeter| (device, emeter)) [INFO] [stdout] | |__________________________________^^^^^^^^__------_________- returning this value requires that `device.device_id` is borrowed for `'2` [INFO] [stdout] | | | [INFO] [stdout] | | move occurs due to use in closure [INFO] [stdout] | move out of `device` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `device` because it is borrowed [INFO] [stdout] --> src/exporter/mod.rs:82:34 [INFO] [stdout] | [INFO] [stdout] 79 | .and_then(move |device| { [INFO] [stdout] | ------- return type of closure `futures::Map, [closure@src/exporter/mod.rs:82:34: 82:42]>` contains a lifetime `'2` [INFO] [stdout] | | [INFO] [stdout] | binding `device` declared here [INFO] [stdout] 80 | / client [INFO] [stdout] 81 | | .emeter(&device.device_id) [INFO] [stdout] | | ----------------- borrow of `device.device_id` occurs here [INFO] [stdout] 82 | | .map(|emeter| (device, emeter)) [INFO] [stdout] | |__________________________________^^^^^^^^__------_________- returning this value requires that `device.device_id` is borrowed for `'2` [INFO] [stdout] | | | [INFO] [stdout] | | move occurs due to use in closure [INFO] [stdout] | move out of `device` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `client` does not live long enough [INFO] [stdout] --> src/exporter/mod.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 69 | client: Arc>, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 74 | client [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _____borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 75 | | .get_device_list() [INFO] [stdout] | |__________________________- argument requires that `client` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 126 | } [INFO] [stdout] | - `client` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `client` does not live long enough [INFO] [stdout] --> src/exporter/mod.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 69 | client: Arc>, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 74 | client [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _____borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 75 | | .get_device_list() [INFO] [stdout] | |__________________________- argument requires that `client` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 126 | } [INFO] [stdout] | - `client` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/exporter/mod.rs:76:19 [INFO] [stdout] | [INFO] [stdout] 69 | client: Arc>, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 74 | client [INFO] [stdout] | ------ borrow of `client` occurs here [INFO] [stdout] 75 | .get_device_list() [INFO] [stdout] 76 | .and_then(|devices| match devices.result { [INFO] [stdout] | -------- ^^^^^^^^^ move out of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] | borrow later used by call [INFO] [stdout] ... [INFO] [stdout] 80 | client [INFO] [stdout] | ------ move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/exporter/mod.rs:76:19 [INFO] [stdout] | [INFO] [stdout] 69 | client: Arc>, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 74 | client [INFO] [stdout] | ------ borrow of `client` occurs here [INFO] [stdout] 75 | .get_device_list() [INFO] [stdout] 76 | .and_then(|devices| match devices.result { [INFO] [stdout] | -------- ^^^^^^^^^ move out of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] | borrow later used by call [INFO] [stdout] ... [INFO] [stdout] 80 | client [INFO] [stdout] | ------ move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `client` does not live long enough [INFO] [stdout] --> src/kasa/mod.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 35 | client: hyper::Client, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 40 | / Self::query( [INFO] [stdout] 41 | | &client, [INFO] [stdout] | | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 42 | | None, [INFO] [stdout] 43 | | Request { [INFO] [stdout] ... | [INFO] [stdout] 46 | | }, [INFO] [stdout] 47 | | ) [INFO] [stdout] | |_________- argument requires that `client` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 64 | } [INFO] [stdout] | - `client` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `client` does not live long enough [INFO] [stdout] --> src/kasa/mod.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 35 | client: hyper::Client, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 40 | / Self::query( [INFO] [stdout] 41 | | &client, [INFO] [stdout] | | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 42 | | None, [INFO] [stdout] 43 | | Request { [INFO] [stdout] ... | [INFO] [stdout] 46 | | }, [INFO] [stdout] 47 | | ) [INFO] [stdout] | |_________- argument requires that `client` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 64 | } [INFO] [stdout] | - `client` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/kasa/mod.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 35 | client: hyper::Client, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 41 | &client, [INFO] [stdout] | ------- borrow of `client` occurs here [INFO] [stdout] ... [INFO] [stdout] 48 | .and_then(|auth_response: Response| { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move out of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] | borrow later used by call [INFO] [stdout] ... [INFO] [stdout] 51 | client, [INFO] [stdout] | ------ move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/kasa/mod.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 35 | client: hyper::Client, [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 41 | &client, [INFO] [stdout] | ------- borrow of `client` occurs here [INFO] [stdout] ... [INFO] [stdout] 48 | .and_then(|auth_response: Response| { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move out of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] | borrow later used by call [INFO] [stdout] ... [INFO] [stdout] 51 | client, [INFO] [stdout] | ------ move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/kasa/mod.rs:119:59 [INFO] [stdout] | [INFO] [stdout] 119 | ... .unwrap_or_else(|e| e.description().to_string()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/kasa/mod.rs:119:59 [INFO] [stdout] | [INFO] [stdout] 119 | ... .unwrap_or_else(|e| e.description().to_string()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/kasa/mod.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 170 | / self.passthrough_query( [INFO] [stdout] 171 | | device_id, [INFO] [stdout] 172 | | &PassthroughParamsData::new().add_emeter(EMeterParams::new().add_realtime()), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 173 | | ) [INFO] [stdout] | |_________- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 187 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/kasa/mod.rs:172:14 [INFO] [stdout] | [INFO] [stdout] 170 | / self.passthrough_query( [INFO] [stdout] 171 | | device_id, [INFO] [stdout] 172 | | &PassthroughParamsData::new().add_emeter(EMeterParams::new().add_realtime()), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 173 | | ) [INFO] [stdout] | |_________- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 187 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kasa_exporter` (lib) due to 9 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `kasa_exporter` (lib test) due to 9 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "169aba596cc6bd495b369e94bf700733236ba172274c146bccce415bf01b812d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "169aba596cc6bd495b369e94bf700733236ba172274c146bccce415bf01b812d", kill_on_drop: false }` [INFO] [stdout] 169aba596cc6bd495b369e94bf700733236ba172274c146bccce415bf01b812d