[INFO] updating cached repository https://github.com/RGafiyatullin/rust-hairy-closure [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 3bf3e3ae6bacdf5691cab7b572bbcebdf32b3b90 [INFO] testing RGafiyatullin/rust-hairy-closure against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRGafiyatullin%2Frust-hairy-closure" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RGafiyatullin/rust-hairy-closure on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/RGafiyatullin/rust-hairy-closure [INFO] finished tweaking git repo https://github.com/RGafiyatullin/rust-hairy-closure [INFO] tweaked toml for git repo https://github.com/RGafiyatullin/rust-hairy-closure written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/RGafiyatullin/rust-hairy-closure already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stdout] c4147abca579349c7cfb10a7d027f4bb5eded354215de5de3ecf2bcd985cf693 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "c4147abca579349c7cfb10a7d027f4bb5eded354215de5de3ecf2bcd985cf693"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.55 [INFO] [stderr] Compiling tokio-trace-core v0.1.0 [INFO] [stderr] Compiling tokio-sync v0.1.5 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling num_cpus v1.10.0 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling mio v0.6.17 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling tokio-threadpool v0.1.14 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling tokio-fs v0.1.6 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio-udp v0.1.3 [INFO] [stderr] Compiling tokio-uds v0.2.5 [INFO] [stderr] Compiling tokio v0.1.20 [INFO] [stderr] Compiling memory-safety v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0373]: closure may outlive the current function, but it borrows `s`, which is owned by the current function [INFO] [stderr] --> src/main.rs:12:13 [INFO] [stderr] | [INFO] [stderr] 12 | |prev, ()| { [INFO] [stderr] | ^^^^^^^^^^ may outlive borrowed value `s` [INFO] [stderr] 13 | let fut = prev.and_then(|()| iteration(&s).into_future()); [INFO] [stderr] | - `s` is borrowed here [INFO] [stderr] | [INFO] [stderr] note: closure is returned here [INFO] [stderr] --> src/main.rs:7:28 [INFO] [stderr] | [INFO] [stderr] 7 | fn fold_it(xs: Vec<()>) -> impl Future { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: to force the closure to take ownership of `s` (and any other referenced variables), use the `move` keyword [INFO] [stderr] | [INFO] [stderr] 12 | move |prev, ()| { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0373`. [INFO] [stderr] error: could not compile `memory-safety`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c4147abca579349c7cfb10a7d027f4bb5eded354215de5de3ecf2bcd985cf693"` [INFO] running `"docker" "rm" "-f" "c4147abca579349c7cfb10a7d027f4bb5eded354215de5de3ecf2bcd985cf693"` [INFO] [stdout] c4147abca579349c7cfb10a7d027f4bb5eded354215de5de3ecf2bcd985cf693