[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#7c3a44cf5f95fa5cf164a312bdcf845157af7093 for pr-77325 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvasily-kirichenko%2Fthreads_test" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vasily-kirichenko/threads_test on toolchain 7c3a44cf5f95fa5cf164a312bdcf845157af7093 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7c3a44cf5f95fa5cf164a312bdcf845157af7093" "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-8/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" "+7c3a44cf5f95fa5cf164a312bdcf845157af7093" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7c3a44cf5f95fa5cf164a312bdcf845157af7093" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90bb66e22c6c75e9878f84e93b359d5277a571635bc4ef95b1965ee91354c5dc [INFO] running `Command { std: "docker" "start" "-a" "90bb66e22c6c75e9878f84e93b359d5277a571635bc4ef95b1965ee91354c5dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90bb66e22c6c75e9878f84e93b359d5277a571635bc4ef95b1965ee91354c5dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90bb66e22c6c75e9878f84e93b359d5277a571635bc4ef95b1965ee91354c5dc", kill_on_drop: false }` [INFO] [stdout] 90bb66e22c6c75e9878f84e93b359d5277a571635bc4ef95b1965ee91354c5dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7c3a44cf5f95fa5cf164a312bdcf845157af7093" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a34470ae251ed6723d1446c3cef491dbe7b1a1ed5ca614a640ef3fe7d064f26 [INFO] running `Command { std: "docker" "start" "-a" "9a34470ae251ed6723d1446c3cef491dbe7b1a1ed5ca614a640ef3fe7d064f26", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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[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] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `threads_test` [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9a34470ae251ed6723d1446c3cef491dbe7b1a1ed5ca614a640ef3fe7d064f26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a34470ae251ed6723d1446c3cef491dbe7b1a1ed5ca614a640ef3fe7d064f26", kill_on_drop: false }` [INFO] [stdout] 9a34470ae251ed6723d1446c3cef491dbe7b1a1ed5ca614a640ef3fe7d064f26