[INFO] cloning repository https://github.com/ranafge/rust-fearless-concurrency [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ranafge/rust-fearless-concurrency" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust-fearless-concurrency", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust-fearless-concurrency'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 517e8527775b946b0d1f3d1375928de9924b095a [INFO] checking ranafge/rust-fearless-concurrency against try#9d63f825c0d409b0e1743a2c84b33f86965e5929 for pr-136968 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Franafge%2Frust-fearless-concurrency" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ranafge/rust-fearless-concurrency on toolchain 9d63f825c0d409b0e1743a2c84b33f86965e5929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ranafge/rust-fearless-concurrency [INFO] finished tweaking git repo https://github.com/ranafge/rust-fearless-concurrency [INFO] tweaked toml for git repo https://github.com/ranafge/rust-fearless-concurrency written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ranafge/rust-fearless-concurrency 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" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7751587f84162634da3bd695d170cbaa439e9c65d6155f9d7663797110f17537 [INFO] running `Command { std: "docker" "start" "-a" "7751587f84162634da3bd695d170cbaa439e9c65d6155f9d7663797110f17537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7751587f84162634da3bd695d170cbaa439e9c65d6155f9d7663797110f17537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7751587f84162634da3bd695d170cbaa439e9c65d6155f9d7663797110f17537", kill_on_drop: false }` [INFO] [stdout] 7751587f84162634da3bd695d170cbaa439e9c65d6155f9d7663797110f17537 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35eee1b66c7a421fac1b556d1c9be728c5d4ba7184d78a1d8c3729481cfd5e1d [INFO] running `Command { std: "docker" "start" "-a" "35eee1b66c7a421fac1b556d1c9be728c5d4ba7184d78a1d8c3729481cfd5e1d", kill_on_drop: false }` [INFO] [stderr] Checking rust_fearless_concurrency v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> examples/share_state_concurrency.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{rc::Rc, sync::{Arc, Mutex}, thread, vec}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> examples/thread_data_transfer.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let (tx, rx) = std::sync::mpsc::channel(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `counter` [INFO] [stdout] --> examples/share_state_between_threads.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 6 | let counter = Mutex::new(0); [INFO] [stdout] | ------- move occurs because `counter` has type `Mutex`, which does not implement the `Copy` trait [INFO] [stdout] 7 | let mut handles = vec![]; [INFO] [stdout] 8 | for _ in 1..10 { [INFO] [stdout] | -------------- inside of this loop [INFO] [stdout] 9 | // Counter value is moved here [INFO] [stdout] 10 | let handle = thread::spawn(move || { [INFO] [stdout] | -------- value moved into closure here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 20 | 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 1..10 { [INFO] [stdout] 10 | // Counter value is moved here [INFO] [stdout] 11 | let handle = thread::spawn(move || { [INFO] [stdout] 12 ~ 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 `rust_fearless_concurrency` (example "share_state_between_threads") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "35eee1b66c7a421fac1b556d1c9be728c5d4ba7184d78a1d8c3729481cfd5e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35eee1b66c7a421fac1b556d1c9be728c5d4ba7184d78a1d8c3729481cfd5e1d", kill_on_drop: false }` [INFO] [stdout] 35eee1b66c7a421fac1b556d1c9be728c5d4ba7184d78a1d8c3729481cfd5e1d