[INFO] cloning repository https://github.com/levysj/zero_width [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/levysj/zero_width" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevysj%2Fzero_width", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevysj%2Fzero_width'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 75f3904ef51824a116cd5347edaead08a6bc0ae8 [INFO] checking levysj/zero_width against try#29194e8f603400afdb2f86c9418e9fccb1628ea0 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flevysj%2Fzero_width" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/levysj/zero_width [INFO] finished tweaking git repo https://github.com/levysj/zero_width [INFO] tweaked toml for git repo https://github.com/levysj/zero_width written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/levysj/zero_width on toolchain 29194e8f603400afdb2f86c9418e9fccb1628ea0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/levysj/zero_width 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" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76537a6630442d2b88edf52765671aeb784f701d5117d72642d431bb40b03ec1 [INFO] running `Command { std: "docker" "start" "-a" "76537a6630442d2b88edf52765671aeb784f701d5117d72642d431bb40b03ec1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76537a6630442d2b88edf52765671aeb784f701d5117d72642d431bb40b03ec1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76537a6630442d2b88edf52765671aeb784f701d5117d72642d431bb40b03ec1", kill_on_drop: false }` [INFO] [stdout] 76537a6630442d2b88edf52765671aeb784f701d5117d72642d431bb40b03ec1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb789ed54d98245c8db4a20f0f69f7097be86673b5d2ba0827a429a61d4601cc [INFO] running `Command { std: "docker" "start" "-a" "cb789ed54d98245c8db4a20f0f69f7097be86673b5d2ba0827a429a61d4601cc", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking zero_width v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/zero_width_fun.rs:55:45 [INFO] [stdout] | [INFO] [stdout] 55 | Err(e) => Err(ZeroWidthError::new(e.description())), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/zero_width_fun.rs:55:45 [INFO] [stdout] | [INFO] [stdout] 55 | Err(e) => Err(ZeroWidthError::new(e.description())), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `ret` [INFO] [stdout] --> src/lib.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 64 | let mut ret: Vec = Vec::new(); [INFO] [stdout] | ------- move occurs because `ret` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] 65 | let mut threads = vec![]; [INFO] [stdout] 66 | for line in str.lines() { [INFO] [stdout] | ----------------------- inside of this loop [INFO] [stdout] 67 | let handle = thread::spawn(move || { [INFO] [stdout] | ------- value moved into closure here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 78 | ret [INFO] [stdout] | ^^^ value used 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] 66 ~ let mut value = ret.push(o); [INFO] [stdout] 67 ~ for line in str.lines() { [INFO] [stdout] 68 | let handle = thread::spawn(move || { [INFO] [stdout] 69 | match dembbed_zero_width(&String::from(line)) { [INFO] [stdout] 70 ~ Ok(o) => value, [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value before moving it into the closure [INFO] [stdout] | [INFO] [stdout] 67 ~ let value = ret.clone(); [INFO] [stdout] 68 ~ let handle = thread::spawn(move || { [INFO] [stdout] 69 | match dembbed_zero_width(&String::from(line)) { [INFO] [stdout] 70 ~ Ok(o) => value.push(o), [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: `ret` [INFO] [stdout] --> src/lib.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 64 | let mut ret: Vec = Vec::new(); [INFO] [stdout] | ------- move occurs because `ret` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] 65 | let mut threads = vec![]; [INFO] [stdout] 66 | for line in str.lines() { [INFO] [stdout] | ----------------------- inside of this loop [INFO] [stdout] 67 | let handle = thread::spawn(move || { [INFO] [stdout] | ------- value moved into closure here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 78 | ret [INFO] [stdout] | ^^^ value used 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] 66 ~ let mut value = ret.push(o); [INFO] [stdout] 67 ~ for line in str.lines() { [INFO] [stdout] 68 | let handle = thread::spawn(move || { [INFO] [stdout] 69 | match dembbed_zero_width(&String::from(line)) { [INFO] [stdout] 70 ~ Ok(o) => value, [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value before moving it into the closure [INFO] [stdout] | [INFO] [stdout] 67 ~ let value = ret.clone(); [INFO] [stdout] 68 ~ let handle = thread::spawn(move || { [INFO] [stdout] 69 | match dembbed_zero_width(&String::from(line)) { [INFO] [stdout] 70 ~ Ok(o) => value.push(o), [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 `zero_width` (lib) due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `zero_width` (lib test) due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cb789ed54d98245c8db4a20f0f69f7097be86673b5d2ba0827a429a61d4601cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb789ed54d98245c8db4a20f0f69f7097be86673b5d2ba0827a429a61d4601cc", kill_on_drop: false }` [INFO] [stdout] cb789ed54d98245c8db4a20f0f69f7097be86673b5d2ba0827a429a61d4601cc