[INFO] cloning repository https://github.com/mats852/ha-store-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mats852/ha-store-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmats852%2Fha-store-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmats852%2Fha-store-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b66edb7e60f2548050a069892454714ebe442b6 [INFO] checking mats852/ha-store-rust against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmats852%2Fha-store-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mats852/ha-store-rust on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mats852/ha-store-rust [INFO] finished tweaking git repo https://github.com/mats852/ha-store-rust [INFO] tweaked toml for git repo https://github.com/mats852/ha-store-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mats852/ha-store-rust 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ddd163507eb6b146778d2b53717f3338901cf2ca9ac6b6bc5a1abe161d9946b [INFO] running `Command { std: "docker" "start" "-a" "8ddd163507eb6b146778d2b53717f3338901cf2ca9ac6b6bc5a1abe161d9946b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ddd163507eb6b146778d2b53717f3338901cf2ca9ac6b6bc5a1abe161d9946b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ddd163507eb6b146778d2b53717f3338901cf2ca9ac6b6bc5a1abe161d9946b", kill_on_drop: false }` [INFO] [stdout] 8ddd163507eb6b146778d2b53717f3338901cf2ca9ac6b6bc5a1abe161d9946b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd4d46584aa4bc51328c32f87dbe80ba596691312f533bb9e63d661625f7b99f [INFO] running `Command { std: "docker" "start" "-a" "cd4d46584aa4bc51328c32f87dbe80ba596691312f533bb9e63d661625f7b99f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking ahash v0.3.8 [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Checking lru v0.6.0 [INFO] [stderr] Checking ha-store-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/store.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | .map(|&key| self.get(key)) [INFO] [stdout] | - ^^^^^^^^^^^^^ returns a reference to a captured variable which escapes the closure body [INFO] [stdout] | | [INFO] [stdout] | inferred to be a `FnMut` closure [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[E0373]: closure may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/store.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | .map(|&key| self.get(key)) [INFO] [stdout] | ^^^^^^ ---- `self` is borrowed here [INFO] [stdout] | | [INFO] [stdout] | may outlive borrowed value `self` [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/store.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | return keys [INFO] [stdout] | ____________^ [INFO] [stdout] 26 | | .iter() [INFO] [stdout] 27 | | .map(|&key| self.get(key)) [INFO] [stdout] 28 | | .collect::>(); [INFO] [stdout] | |__________________________^ [INFO] [stdout] help: to force the closure to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 27 | .map(move |&key| self.get(key)) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ha-store-rust` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/store.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | .map(|&key| self.get(key)) [INFO] [stdout] | - ^^^^^^^^^^^^^ returns a reference to a captured variable which escapes the closure body [INFO] [stdout] | | [INFO] [stdout] | inferred to be a `FnMut` closure [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[E0373]: closure may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/store.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | .map(|&key| self.get(key)) [INFO] [stdout] | ^^^^^^ ---- `self` is borrowed here [INFO] [stdout] | | [INFO] [stdout] | may outlive borrowed value `self` [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/store.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | return keys [INFO] [stdout] | ____________^ [INFO] [stdout] 26 | | .iter() [INFO] [stdout] 27 | | .map(|&key| self.get(key)) [INFO] [stdout] 28 | | .collect::>(); [INFO] [stdout] | |__________________________^ [INFO] [stdout] help: to force the closure to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 27 | .map(move |&key| self.get(key)) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ha-store-rust` (lib test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "cd4d46584aa4bc51328c32f87dbe80ba596691312f533bb9e63d661625f7b99f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd4d46584aa4bc51328c32f87dbe80ba596691312f533bb9e63d661625f7b99f", kill_on_drop: false }` [INFO] [stdout] cd4d46584aa4bc51328c32f87dbe80ba596691312f533bb9e63d661625f7b99f