[INFO] cloning repository https://github.com/rosllarr/rsbox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rosllarr/rsbox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frosllarr%2Frsbox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frosllarr%2Frsbox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8889c0e8a791b8bdab293025c3d40dff58ffc764 [INFO] checking rosllarr/rsbox against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frosllarr%2Frsbox" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rosllarr/rsbox [INFO] finished tweaking git repo https://github.com/rosllarr/rsbox [INFO] tweaked toml for git repo https://github.com/rosllarr/rsbox written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rosllarr/rsbox on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rosllarr/rsbox 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 138c5edc2846109b8d17b6184e0babf222bdff01a2744cb0e54e63c90dc5f2d2 [INFO] running `Command { std: "docker" "start" "-a" "138c5edc2846109b8d17b6184e0babf222bdff01a2744cb0e54e63c90dc5f2d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "138c5edc2846109b8d17b6184e0babf222bdff01a2744cb0e54e63c90dc5f2d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "138c5edc2846109b8d17b6184e0babf222bdff01a2744cb0e54e63c90dc5f2d2", kill_on_drop: false }` [INFO] [stdout] 138c5edc2846109b8d17b6184e0babf222bdff01a2744cb0e54e63c90dc5f2d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7527d87bcac6866d156a6d527ed641a29771fdf376bf097cfe2fddb988d2e6f [INFO] running `Command { std: "docker" "start" "-a" "b7527d87bcac6866d156a6d527ed641a29771fdf376bf097cfe2fddb988d2e6f", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking impl-oop v0.1.0 (/opt/rustwide/workdir/crates/impl-oop) [INFO] [stderr] Checking thread v0.1.0 (/opt/rustwide/workdir/crates/thread) [INFO] [stderr] Checking channel v0.1.0 (/opt/rustwide/workdir/crates/channel) [INFO] [stderr] Checking mutex v0.1.0 (/opt/rustwide/workdir/crates/mutex) [INFO] [stderr] error: could not compile `mutex` (bin "share_mutex_between_threads_err1") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0382]: use of moved value: `counter` [INFO] [stdout] --> crates/mutex/src/bin/share_mutex_between_threads_err1.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 5 | let counter = Mutex::new(0); [INFO] [stdout] | ------- move occurs because `counter` has type `std::sync::Mutex`, 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] 10 | // We can't move the ownership of lock `counter` into multiple threads. [INFO] [stdout] 11 | let mut num = counter.lock().unwrap(); [INFO] [stdout] | ------- use occurs due to use in closure [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 | // We can't move the ownership of lock `counter` into multiple threads. [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] [stdout] error[E0382]: use of moved value: `counter` [INFO] [stdout] --> crates/mutex/src/bin/share_mutex_between_threads_err1.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 5 | let counter = Mutex::new(0); [INFO] [stdout] | ------- move occurs because `counter` has type `std::sync::Mutex`, 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] 10 | // We can't move the ownership of lock `counter` into multiple threads. [INFO] [stdout] 11 | let mut num = counter.lock().unwrap(); [INFO] [stdout] | ------- use occurs due to use in closure [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 | // We can't move the ownership of lock `counter` into multiple threads. [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] [stdout] error[E0382]: borrow of moved value: `val` [INFO] [stdout] --> crates/channel/src/bin/channel_and_ownership.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 8 | let val = String::from("hi"); [INFO] [stdout] | --- move occurs because `val` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 11 | tx.send(val).unwrap(); [INFO] [stdout] | --- value moved here [INFO] [stdout] 12 | println!("val is {}", val); [INFO] [stdout] | ^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mutex` (bin "share_mutex_between_threads_err1" test) due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `channel` (bin "channel_and_ownership" test) due to 1 previous error [INFO] [stdout] error[E0277]: `Rc>` cannot be sent between threads safely [INFO] [stdout] --> crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | let handle = thread::spawn(move || { [INFO] [stdout] | ------------- ^------ [INFO] [stdout] | | | [INFO] [stdout] | ______________________|_____________within this `{closure@crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36: 14:43}` [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 15 | | let mut num = counter.lock().unwrap(); [INFO] [stdout] 16 | | *num += 1; [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_________^ `Rc>` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `{closure@crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36: 14:43}`, the trait `Send` is not implemented for `Rc>` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/thread/mod.rs:723:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mutex` (bin "share_mutex_between_threads_err2") due to 1 previous error [INFO] [stdout] error[E0277]: `Rc>` cannot be sent between threads safely [INFO] [stdout] --> crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | let handle = thread::spawn(move || { [INFO] [stdout] | ------------- ^------ [INFO] [stdout] | | | [INFO] [stdout] | ______________________|_____________within this `{closure@crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36: 14:43}` [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 15 | | let mut num = counter.lock().unwrap(); [INFO] [stdout] 16 | | *num += 1; [INFO] [stdout] 17 | | }); [INFO] [stdout] | |_________^ `Rc>` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `{closure@crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36: 14:43}`, the trait `Send` is not implemented for `Rc>` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> crates/mutex/src/bin/share_mutex_between_threads_err2.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/thread/mod.rs:723:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mutex` (bin "share_mutex_between_threads_err2" test) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "b7527d87bcac6866d156a6d527ed641a29771fdf376bf097cfe2fddb988d2e6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7527d87bcac6866d156a6d527ed641a29771fdf376bf097cfe2fddb988d2e6f", kill_on_drop: false }` [INFO] [stdout] b7527d87bcac6866d156a6d527ed641a29771fdf376bf097cfe2fddb988d2e6f