[INFO] cloning repository https://github.com/vasily-kirichenko/threads_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vasily-kirichenko/threads_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvasily-kirichenko%2Fthreads_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvasily-kirichenko%2Fthreads_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b537905608b0683f8489d0b9c043ce2b6f36d01 [INFO] checking vasily-kirichenko/threads_test against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvasily-kirichenko%2Fthreads_test" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vasily-kirichenko/threads_test on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vasily-kirichenko/threads_test [INFO] finished tweaking git repo https://github.com/vasily-kirichenko/threads_test [INFO] tweaked toml for git repo https://github.com/vasily-kirichenko/threads_test written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/vasily-kirichenko/threads_test already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6b0b9b2d106b8b3ce7b4bb86e30178d936500e925881efd687d5f6af317a215 [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" "b6b0b9b2d106b8b3ce7b4bb86e30178d936500e925881efd687d5f6af317a215", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6b0b9b2d106b8b3ce7b4bb86e30178d936500e925881efd687d5f6af317a215", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6b0b9b2d106b8b3ce7b4bb86e30178d936500e925881efd687d5f6af317a215", kill_on_drop: false }` [INFO] [stdout] b6b0b9b2d106b8b3ce7b4bb86e30178d936500e925881efd687d5f6af317a215 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2c9f03114e58100223db5112cee2549c87ec8122e92cdecea62786c01e29703 [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" "c2c9f03114e58100223db5112cee2549c87ec8122e92cdecea62786c01e29703", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking threads_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `v`, which is owned by the current function [INFO] [stdout] --> src/main.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | let t = thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `v` [INFO] [stdout] 7 | let mut v = v.lock().unwrap(); [INFO] [stdout] | - `v` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let t = thread::spawn(|| { [INFO] [stdout] | _____________^ [INFO] [stdout] 7 | | let mut v = v.lock().unwrap(); [INFO] [stdout] 8 | | v.push(4); [INFO] [stdout] 9 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: to force the closure to take ownership of `v` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 6 | let t = thread::spawn(move || { [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 `threads_test` [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `v`, which is owned by the current function [INFO] [stdout] --> src/main.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | let t = thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `v` [INFO] [stdout] 7 | let mut v = v.lock().unwrap(); [INFO] [stdout] | - `v` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let t = thread::spawn(|| { [INFO] [stdout] | _____________^ [INFO] [stdout] 7 | | let mut v = v.lock().unwrap(); [INFO] [stdout] 8 | | v.push(4); [INFO] [stdout] 9 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: to force the closure to take ownership of `v` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 6 | let t = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "c2c9f03114e58100223db5112cee2549c87ec8122e92cdecea62786c01e29703", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2c9f03114e58100223db5112cee2549c87ec8122e92cdecea62786c01e29703", kill_on_drop: false }` [INFO] [stdout] c2c9f03114e58100223db5112cee2549c87ec8122e92cdecea62786c01e29703