[INFO] cloning repository https://github.com/PoC-Consortium/scavenger [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PoC-Consortium/scavenger" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPoC-Consortium%2Fscavenger", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPoC-Consortium%2Fscavenger'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b38f6552c31d589a0433cb8ef52a44c87ce18725 [INFO] checking PoC-Consortium/scavenger against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPoC-Consortium%2Fscavenger" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PoC-Consortium/scavenger 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 git repo https://github.com/PoC-Consortium/scavenger [INFO] finished tweaking git repo https://github.com/PoC-Consortium/scavenger [INFO] tweaked toml for git repo https://github.com/PoC-Consortium/scavenger written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/PoC-Consortium/scavenger 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be01a69f954168804eff9d78f29c94e205a4f658bd42920db796672b3f174112 [INFO] running `Command { std: "docker" "start" "-a" "be01a69f954168804eff9d78f29c94e205a4f658bd42920db796672b3f174112", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be01a69f954168804eff9d78f29c94e205a4f658bd42920db796672b3f174112", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be01a69f954168804eff9d78f29c94e205a4f658bd42920db796672b3f174112", kill_on_drop: false }` [INFO] [stdout] be01a69f954168804eff9d78f29c94e205a4f658bd42920db796672b3f174112 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 343b9f4f61fd6ee6b9298fe8a84b2748a40d0a710d81e7e096a899b7d2df89a3 [INFO] running `Command { std: "docker" "start" "-a" "343b9f4f61fd6ee6b9298fe8a84b2748a40d0a710d81e7e096a899b7d2df89a3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.96 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking tinyvec v1.2.0 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Compiling backtrace v0.3.60 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Checking gimli v0.24.0 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking object v0.25.2 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling hyper v0.12.36 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking rustc-demangle v0.1.19 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking addr2line v0.15.2 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking unsafe-any v0.4.2 [INFO] [stderr] Checking ct-logs v0.6.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Checking webpki-roots v0.17.0 [INFO] [stderr] Checking publicsuffix v1.5.6 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking num-iter v0.1.42 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking cookie v0.12.0 [INFO] [stderr] Checking ordered-float v1.1.1 [INFO] [stderr] Checking try_from v0.3.2 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking kernel32-sys v0.2.2 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Compiling scavenger v1.9.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking typemap v0.3.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking ansi_term v0.10.2 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking arc-swap v0.3.11 [INFO] [stderr] Checking antidote v1.0.0 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Checking clap v2.30.0 [INFO] [stderr] Checking rayon v1.5.1 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stderr] Checking aligned_alloc v0.1.3 [INFO] [stderr] Checking pbr v1.0.4 [INFO] [stderr] Checking core_affinity v0.5.10 [INFO] [stderr] Checking filetime v0.2.14 [INFO] [stderr] Checking hostname v0.1.5 [INFO] [stderr] Checking page_size v0.4.2 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking serde-value v0.5.3 [INFO] [stderr] Checking serde_urlencoded v0.5.5 [INFO] [stderr] Checking serde_yaml v0.8.17 [INFO] [stderr] Checking url_serde v0.2.0 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking rustls v0.16.0 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking h2 v0.1.26 [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 cookie_store v0.7.0 [INFO] [stderr] Checking log4rs v0.8.3 [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-rustls v0.10.3 [INFO] [stderr] Checking hyper-rustls v0.17.1 [INFO] [stderr] Checking reqwest v0.9.24 [INFO] [stdout] error[E0597]: `client` does not live long enough [INFO] [stdout] --> src/com/client.rs:279:40 [INFO] [stdout] | [INFO] [stdout] 270 | let client = Client::new( [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 279 | let height = match rt.block_on(client.get_mining_info()) { [INFO] [stdout] | ^^^^^^------------------ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `client` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 298 | } [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/com/client.rs:285:53 [INFO] [stdout] | [INFO] [stdout] 270 | let client = Client::new( [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 285 | let nonce_submission_response = rt.block_on(client.submit_nonce(&SubmissionParameters { [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | _____________________________________________________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 286 | | account_id: 1337, [INFO] [stdout] 287 | | nonce: 12, [INFO] [stdout] 288 | | height, [INFO] [stdout] ... | [INFO] [stdout] 292 | | gen_sig: [0; 32], [INFO] [stdout] 293 | | })); [INFO] [stdout] | |__________- argument requires that `client` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 298 | } [INFO] [stdout] | - `client` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/com/client.rs:285:74 [INFO] [stdout] | [INFO] [stdout] 285 | let nonce_submission_response = rt.block_on(client.submit_nonce(&SubmissionParameters { [INFO] [stdout] | ______________________________________________________-____________________^ [INFO] [stdout] | | _____________________________________________________| [INFO] [stdout] | || [INFO] [stdout] 286 | || account_id: 1337, [INFO] [stdout] 287 | || nonce: 12, [INFO] [stdout] 288 | || height, [INFO] [stdout] ... || [INFO] [stdout] 292 | || gen_sig: [0; 32], [INFO] [stdout] 293 | || })); [INFO] [stdout] | || ^- - temporary value is freed at the end of this statement [INFO] [stdout] | ||_________|| [INFO] [stdout] | |__________|argument requires that borrow lasts for `'static` [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/miner.rs:472:21 [INFO] [stdout] | [INFO] [stdout] 456 | let request_handler = self.request_handler.clone(); [INFO] [stdout] | --------------- variable defined here [INFO] [stdout] ... [INFO] [stdout] 469 | .for_each(move |_| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] ... [INFO] [stdout] 472 | request_handler.get_mining_info().then(move |mining_info| { [INFO] [stdout] | ^-------------- [INFO] [stdout] | | [INFO] [stdout] | _____________________variable captured here [INFO] [stdout] | | [INFO] [stdout] 473 | | match mining_info { [INFO] [stdout] 474 | | Ok(mining_info) => { [INFO] [stdout] 475 | | let mut state = state.lock().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 521 | | future::ok(()) [INFO] [stdout] 522 | | }) [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] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.interupts` because it is borrowed [INFO] [stdout] --> src/reader.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | self.interupts = self [INFO] [stdout] | ^^^^^^^^^^^^^^ `self.interupts` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 119 | .map(|(drive, plots)| { [INFO] [stdout] | ---------------- `self.interupts` is borrowed here [INFO] [stdout] 120 | let (interupt, task) = if self.show_progress { [INFO] [stdout] 121 | self.create_read_task( [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________borrow occurs due to use in closure [INFO] [stdout] | | [INFO] [stdout] 122 | | Some(pb.clone()), [INFO] [stdout] 123 | | drive.clone(), [INFO] [stdout] 124 | | plots.clone(), [INFO] [stdout] ... | [INFO] [stdout] 130 | | self.show_drive_stats, [INFO] [stdout] 131 | | ) [INFO] [stdout] | |_____________________- argument requires that `self` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `self` does not live long enough [INFO] [stdout] --> src/reader.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 119 | .map(|(drive, plots)| { [INFO] [stdout] | ---------------- value captured here [INFO] [stdout] 120 | let (interupt, task) = if self.show_progress { [INFO] [stdout] 121 | self.create_read_task( [INFO] [stdout] | -^^^ [INFO] [stdout] | | [INFO] [stdout] | _____________________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 122 | | Some(pb.clone()), [INFO] [stdout] 123 | | drive.clone(), [INFO] [stdout] 124 | | plots.clone(), [INFO] [stdout] ... | [INFO] [stdout] 130 | | self.show_drive_stats, [INFO] [stdout] 131 | | ) [INFO] [stdout] | |_____________________- argument requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 150 | } [INFO] [stdout] | - `self` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/reader.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 78 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 121 | / self.create_read_task( [INFO] [stdout] 122 | | Some(pb.clone()), [INFO] [stdout] 123 | | drive.clone(), [INFO] [stdout] 124 | | plots.clone(), [INFO] [stdout] ... | [INFO] [stdout] 130 | | self.show_drive_stats, [INFO] [stdout] 131 | | ) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____________________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/requests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | // client [INFO] [stdout] 73 | || .clone() [INFO] [stdout] | ||____________________________- temporary value created here [INFO] [stdout] 74 | | .submit_nonce(&submission_params) [INFO] [stdout] 75 | | .then(move |res| { [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(()) [INFO] [stdout] 134 | | }) [INFO] [stdout] | |_______________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `submission_params` [INFO] [stdout] --> src/requests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | / client [INFO] [stdout] 73 | | .clone() [INFO] [stdout] 74 | | .submit_nonce(&submission_params) [INFO] [stdout] | | ------------------ `submission_params` is borrowed here [INFO] [stdout] 75 | | .then(move |res| { [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(()) [INFO] [stdout] 134 | | }) [INFO] [stdout] | |______________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `submission_params` because it is borrowed [INFO] [stdout] --> src/requests.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 68 | .and_then(move |submission_params| { [INFO] [stdout] | ------------------ return type of closure `futures::Then, Result<(), prio_retry::Error<()>>, [closure@src/requests.rs:75:27: 75:37]>` contains a lifetime `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `submission_params` declared here [INFO] [stdout] ... [INFO] [stdout] 72 | / client [INFO] [stdout] 73 | | .clone() [INFO] [stdout] 74 | | .submit_nonce(&submission_params) [INFO] [stdout] | | ------------------ borrow of `submission_params` occurs here [INFO] [stdout] 75 | | .then(move |res| { [INFO] [stdout] | | ^^^^^^^^^^ move out of `submission_params` occurs here [INFO] [stdout] ... | [INFO] [stdout] 105 | | let res = tx_submit_data.unbounded_send(submission_params); [INFO] [stdout] | | ----------------- move occurs due to use in closure [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(()) [INFO] [stdout] 134 | | }) [INFO] [stdout] | |______________________- returning this value requires that `submission_params` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/miner.rs:472:21 [INFO] [stdout] | [INFO] [stdout] 456 | let request_handler = self.request_handler.clone(); [INFO] [stdout] | --------------- variable defined here [INFO] [stdout] ... [INFO] [stdout] 469 | .for_each(move |_| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] ... [INFO] [stdout] 472 | request_handler.get_mining_info().then(move |mining_info| { [INFO] [stdout] | ^-------------- [INFO] [stdout] | | [INFO] [stdout] | _____________________variable captured here [INFO] [stdout] | | [INFO] [stdout] 473 | | match mining_info { [INFO] [stdout] 474 | | Ok(mining_info) => { [INFO] [stdout] 475 | | let mut state = state.lock().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 521 | | future::ok(()) [INFO] [stdout] 522 | | }) [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] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.interupts` because it is borrowed [INFO] [stdout] --> src/reader.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | self.interupts = self [INFO] [stdout] | ^^^^^^^^^^^^^^ `self.interupts` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 119 | .map(|(drive, plots)| { [INFO] [stdout] | ---------------- `self.interupts` is borrowed here [INFO] [stdout] 120 | let (interupt, task) = if self.show_progress { [INFO] [stdout] 121 | self.create_read_task( [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________borrow occurs due to use in closure [INFO] [stdout] | | [INFO] [stdout] 122 | | Some(pb.clone()), [INFO] [stdout] 123 | | drive.clone(), [INFO] [stdout] 124 | | plots.clone(), [INFO] [stdout] ... | [INFO] [stdout] 130 | | self.show_drive_stats, [INFO] [stdout] 131 | | ) [INFO] [stdout] | |_____________________- argument requires that `self` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `self` does not live long enough [INFO] [stdout] --> src/reader.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 119 | .map(|(drive, plots)| { [INFO] [stdout] | ---------------- value captured here [INFO] [stdout] 120 | let (interupt, task) = if self.show_progress { [INFO] [stdout] 121 | self.create_read_task( [INFO] [stdout] | -^^^ [INFO] [stdout] | | [INFO] [stdout] | _____________________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 122 | | Some(pb.clone()), [INFO] [stdout] 123 | | drive.clone(), [INFO] [stdout] 124 | | plots.clone(), [INFO] [stdout] ... | [INFO] [stdout] 130 | | self.show_drive_stats, [INFO] [stdout] 131 | | ) [INFO] [stdout] | |_____________________- argument requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 150 | } [INFO] [stdout] | - `self` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/reader.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 78 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 121 | / self.create_read_task( [INFO] [stdout] 122 | | Some(pb.clone()), [INFO] [stdout] 123 | | drive.clone(), [INFO] [stdout] 124 | | plots.clone(), [INFO] [stdout] ... | [INFO] [stdout] 130 | | self.show_drive_stats, [INFO] [stdout] 131 | | ) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____________________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/requests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | // client [INFO] [stdout] 73 | || .clone() [INFO] [stdout] | ||____________________________- temporary value created here [INFO] [stdout] 74 | | .submit_nonce(&submission_params) [INFO] [stdout] 75 | | .then(move |res| { [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(()) [INFO] [stdout] 134 | | }) [INFO] [stdout] | |_______________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `submission_params` [INFO] [stdout] --> src/requests.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | / client [INFO] [stdout] 73 | | .clone() [INFO] [stdout] 74 | | .submit_nonce(&submission_params) [INFO] [stdout] | | ------------------ `submission_params` is borrowed here [INFO] [stdout] 75 | | .then(move |res| { [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(()) [INFO] [stdout] 134 | | }) [INFO] [stdout] | |______________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `submission_params` because it is borrowed [INFO] [stdout] --> src/requests.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 68 | .and_then(move |submission_params| { [INFO] [stdout] | ------------------ return type of closure `futures::Then, Result<(), prio_retry::Error<()>>, [closure@src/requests.rs:75:27: 75:37]>` contains a lifetime `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `submission_params` declared here [INFO] [stdout] ... [INFO] [stdout] 72 | / client [INFO] [stdout] 73 | | .clone() [INFO] [stdout] 74 | | .submit_nonce(&submission_params) [INFO] [stdout] | | ------------------ borrow of `submission_params` occurs here [INFO] [stdout] 75 | | .then(move |res| { [INFO] [stdout] | | ^^^^^^^^^^ move out of `submission_params` occurs here [INFO] [stdout] ... | [INFO] [stdout] 105 | | let res = tx_submit_data.unbounded_send(submission_params); [INFO] [stdout] | | ----------------- move occurs due to use in closure [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(()) [INFO] [stdout] 134 | | }) [INFO] [stdout] | |______________________- returning this value requires that `submission_params` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0506, E0515, E0521, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `scavenger` (bin "scavenger") due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0506, E0515, E0521, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `scavenger` (bin "scavenger" test) due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "343b9f4f61fd6ee6b9298fe8a84b2748a40d0a710d81e7e096a899b7d2df89a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "343b9f4f61fd6ee6b9298fe8a84b2748a40d0a710d81e7e096a899b7d2df89a3", kill_on_drop: false }` [INFO] [stdout] 343b9f4f61fd6ee6b9298fe8a84b2748a40d0a710d81e7e096a899b7d2df89a3