[INFO] cloning repository https://github.com/blue-emc2/book_16
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/blue-emc2/book_16" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-emc2%2Fbook_16", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-emc2%2Fbook_16'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6c922c135d876b5fb4ab0b451905b67d58e02063
[INFO] checking blue-emc2/book_16 against try#ed606620234c6b50f2414162c4bbabd5f4a925f3 for pr-147995
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-emc2%2Fbook_16" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/blue-emc2/book_16
[INFO] finished tweaking git repo https://github.com/blue-emc2/book_16
[INFO] tweaked toml for git repo https://github.com/blue-emc2/book_16 written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/blue-emc2/book_16 on toolchain ed606620234c6b50f2414162c4bbabd5f4a925f3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/blue-emc2/book_16 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" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "fetch" "--manifest-path" "Cargo.toml", 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1da86a6472052b9c1b9e54e4b4863e5a718b26754f8f27c92973333be1310e22
[INFO] running `Command { std: "docker" "start" "-a" "1da86a6472052b9c1b9e54e4b4863e5a718b26754f8f27c92973333be1310e22", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1da86a6472052b9c1b9e54e4b4863e5a718b26754f8f27c92973333be1310e22", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1da86a6472052b9c1b9e54e4b4863e5a718b26754f8f27c92973333be1310e22", kill_on_drop: false }`
[INFO] [stdout] 1da86a6472052b9c1b9e54e4b4863e5a718b26754f8f27c92973333be1310e22
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0353c17ebf6fba977a7f7145a8cb4934d266f4f3c73b3f37b78e68a23967e3c1
[INFO] running `Command { std: "docker" "start" "-a" "0353c17ebf6fba977a7f7145a8cb4934d266f4f3c73b3f37b78e68a23967e3c1", kill_on_drop: false }`
[INFO] [stderr]     Checking book_16 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> examples/spawn2.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `counter`
[INFO] [stdout]   --> examples/mutex1.rs:21:27
[INFO] [stdout]    |
[INFO] [stdout]  5 |   let counter = Mutex::new(0);
[INFO] [stdout]    |       ------- move occurs because `counter` has type `std::sync::Mutex<i32>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout]  8 |   for _ in 0..10 {
[INFO] [stdout]    |   -------------- inside of this loop
[INFO] [stdout]  9 |     let handle = thread::spawn(move || {
[INFO] [stdout]    |                                ------- value moved into closure here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 21 |   println!("Result: {}", *counter.lock().unwrap());
[INFO] [stdout]    |                           ^^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once
[INFO] [stdout]    |
[INFO] [stdout]  8 ~   let mut value = counter.lock();
[INFO] [stdout]  9 ~   for _ in 0..10 {
[INFO] [stdout] 10 |     let handle = thread::spawn(move || {
[INFO] [stdout] 11 ~       let mut num = value.unwrap();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `book_16` (example "mutex1") due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "0353c17ebf6fba977a7f7145a8cb4934d266f4f3c73b3f37b78e68a23967e3c1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0353c17ebf6fba977a7f7145a8cb4934d266f4f3c73b3f37b78e68a23967e3c1", kill_on_drop: false }`
[INFO] [stdout] 0353c17ebf6fba977a7f7145a8cb4934d266f4f3c73b3f37b78e68a23967e3c1
