[INFO] cloning repository https://github.com/anywherecreative/advent_of_code_2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anywherecreative/advent_of_code_2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanywherecreative%2Fadvent_of_code_2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanywherecreative%2Fadvent_of_code_2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c3f50de5c2919527d7ee2b20d9301b67f2cb578 [INFO] checking anywherecreative/advent_of_code_2023 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanywherecreative%2Fadvent_of_code_2023" "/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/anywherecreative/advent_of_code_2023 [INFO] finished tweaking git repo https://github.com/anywherecreative/advent_of_code_2023 [INFO] tweaked toml for git repo https://github.com/anywherecreative/advent_of_code_2023 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/anywherecreative/advent_of_code_2023 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/anywherecreative/advent_of_code_2023 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d948b49d391446b0b83ffb119d344436feed177180d4aeebea7207ea4fe6b2c [INFO] running `Command { std: "docker" "start" "-a" "0d948b49d391446b0b83ffb119d344436feed177180d4aeebea7207ea4fe6b2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d948b49d391446b0b83ffb119d344436feed177180d4aeebea7207ea4fe6b2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d948b49d391446b0b83ffb119d344436feed177180d4aeebea7207ea4fe6b2c", kill_on_drop: false }` [INFO] [stdout] 0d948b49d391446b0b83ffb119d344436feed177180d4aeebea7207ea4fe6b2c [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f8b82dc485048728acfb44ec715f8199f6735c6a0756b2033b09603ad6c2a89 [INFO] running `Command { std: "docker" "start" "-a" "0f8b82dc485048728acfb44ec715f8199f6735c6a0756b2033b09603ad6c2a89", kill_on_drop: false }` [INFO] [stderr] Compiling substring v1.4.5 [INFO] [stderr] Checking advent_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `lines` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:301:21 [INFO] [stdout] | [INFO] [stdout] 290 | for (_i,line) in lines.iter().enumerate() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 301 | lines.push(lines[number+wins].clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^ [INFO] [stdout] | | | [INFO] [stdout] | | this call doesn't do anything, the result is still `&str` because `str` doesn't implement `Clone` [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `lines` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:301:21 [INFO] [stdout] | [INFO] [stdout] 290 | for (_i,line) in lines.iter().enumerate() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 301 | lines.push(lines[number+wins].clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^ [INFO] [stdout] | | | [INFO] [stdout] | | this call doesn't do anything, the result is still `&str` because `str` doesn't implement `Clone` [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (bin "advent_of_code" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `advent_of_code` (bin "advent_of_code") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "0f8b82dc485048728acfb44ec715f8199f6735c6a0756b2033b09603ad6c2a89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f8b82dc485048728acfb44ec715f8199f6735c6a0756b2033b09603ad6c2a89", kill_on_drop: false }` [INFO] [stdout] 0f8b82dc485048728acfb44ec715f8199f6735c6a0756b2033b09603ad6c2a89