[INFO] cloning repository https://github.com/RGafiyatullin/rust-hairy-closure [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RGafiyatullin/rust-hairy-closure" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRGafiyatullin%2Frust-hairy-closure", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRGafiyatullin%2Frust-hairy-closure'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3bf3e3ae6bacdf5691cab7b572bbcebdf32b3b90 [INFO] checking RGafiyatullin/rust-hairy-closure against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRGafiyatullin%2Frust-hairy-closure" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RGafiyatullin/rust-hairy-closure on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-0/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 `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mio v0.6.17 [INFO] [stderr] Downloaded tokio-sync v0.1.5 [INFO] [stderr] Downloaded tokio v0.1.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 986767ff3d362681643fc65a09f24f8526ba1531acefd8dcca860f7e87261b95 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "986767ff3d362681643fc65a09f24f8526ba1531acefd8dcca860f7e87261b95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "986767ff3d362681643fc65a09f24f8526ba1531acefd8dcca860f7e87261b95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "986767ff3d362681643fc65a09f24f8526ba1531acefd8dcca860f7e87261b95", kill_on_drop: false }` [INFO] [stdout] 986767ff3d362681643fc65a09f24f8526ba1531acefd8dcca860f7e87261b95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a4015a524f8671c98ff3991b60b874f81f700e60d046362c61de4dc7a7f4dae8 [INFO] running `Command { std: "docker" "start" "-a" "a4015a524f8671c98ff3991b60b874f81f700e60d046362c61de4dc7a7f4dae8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking smallvec v0.6.9 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking crossbeam-utils v0.6.5 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking tokio-sync v0.1.5 [INFO] [stderr] Checking tokio-trace-core v0.1.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking tokio-executor v0.1.7 [INFO] [stderr] Checking mio v0.6.17 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking tokio-timer v0.2.11 [INFO] [stderr] Checking tokio-current-thread v0.1.6 [INFO] [stderr] Checking crossbeam-epoch v0.7.1 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking parking_lot_core v0.4.0 [INFO] [stderr] Checking tokio-threadpool v0.1.14 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking tokio-codec v0.1.1 [INFO] [stderr] Checking tokio-fs v0.1.6 [INFO] [stderr] Checking tokio-reactor v0.1.9 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio-udp v0.1.3 [INFO] [stderr] Checking tokio-uds v0.2.5 [INFO] [stderr] Checking tokio v0.1.20 [INFO] [stderr] Checking memory-safety v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `s`, which is owned by the current function [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | |prev, ()| { [INFO] [stdout] | ^^^^^^^^^^ may outlive borrowed value `s` [INFO] [stdout] 13 | let fut = prev.and_then(|()| iteration(&s).into_future()); [INFO] [stdout] | - `s` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/main.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | fn fold_it(xs: Vec<()>) -> impl Future { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: to force the closure to take ownership of `s` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 12 | move |prev, ()| { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `memory-safety` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `s`, which is owned by the current function [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | |prev, ()| { [INFO] [stdout] | ^^^^^^^^^^ may outlive borrowed value `s` [INFO] [stdout] 13 | let fut = prev.and_then(|()| iteration(&s).into_future()); [INFO] [stdout] | - `s` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: closure is returned here [INFO] [stdout] --> src/main.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | fn fold_it(xs: Vec<()>) -> impl Future { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: to force the closure to take ownership of `s` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 12 | move |prev, ()| { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "a4015a524f8671c98ff3991b60b874f81f700e60d046362c61de4dc7a7f4dae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4015a524f8671c98ff3991b60b874f81f700e60d046362c61de4dc7a7f4dae8", kill_on_drop: false }` [INFO] [stdout] a4015a524f8671c98ff3991b60b874f81f700e60d046362c61de4dc7a7f4dae8