[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#446cb600aa4837dd6c513f14fa0d25a909b177d7 for pr-149195
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-emc2%2Fbook_16" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-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-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/blue-emc2/book_16 on toolchain 446cb600aa4837dd6c513f14fa0d25a909b177d7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "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" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 72ddc7ef127f17598853162875cbd7fec1e47f29dd910d4fe1b79a4ef5b6554c
[INFO] running `Command { std: "docker" "start" "-a" "72ddc7ef127f17598853162875cbd7fec1e47f29dd910d4fe1b79a4ef5b6554c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "72ddc7ef127f17598853162875cbd7fec1e47f29dd910d4fe1b79a4ef5b6554c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "72ddc7ef127f17598853162875cbd7fec1e47f29dd910d4fe1b79a4ef5b6554c", kill_on_drop: false }`
[INFO] [stdout] 72ddc7ef127f17598853162875cbd7fec1e47f29dd910d4fe1b79a4ef5b6554c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9d40eda51df648cec48a1ec7b1e50f3e8a178aa26a0a3e66a7e49c35d02cb08a
[INFO] running `Command { std: "docker" "start" "-a" "9d40eda51df648cec48a1ec7b1e50f3e8a178aa26a0a3e66a7e49c35d02cb08a", 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" "9d40eda51df648cec48a1ec7b1e50f3e8a178aa26a0a3e66a7e49c35d02cb08a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9d40eda51df648cec48a1ec7b1e50f3e8a178aa26a0a3e66a7e49c35d02cb08a", kill_on_drop: false }`
[INFO] [stdout] 9d40eda51df648cec48a1ec7b1e50f3e8a178aa26a0a3e66a7e49c35d02cb08a
