[INFO] cloning repository https://github.com/maximumstock/Advent-of-Code-2021 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maximumstock/Advent-of-Code-2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaximumstock%2FAdvent-of-Code-2021", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaximumstock%2FAdvent-of-Code-2021'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1191d6fe195c86ac7b076a7a963093616cc4a6c5 [INFO] checking maximumstock/Advent-of-Code-2021 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaximumstock%2FAdvent-of-Code-2021" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/maximumstock/Advent-of-Code-2021 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/maximumstock/Advent-of-Code-2021 [INFO] finished tweaking git repo https://github.com/maximumstock/Advent-of-Code-2021 [INFO] tweaked toml for git repo https://github.com/maximumstock/Advent-of-Code-2021 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/maximumstock/Advent-of-Code-2021 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d155e51467f283c1e57567fe08d393093364a4e1400eab34ab9411ff216c75b [INFO] running `Command { std: "docker" "start" "-a" "3d155e51467f283c1e57567fe08d393093364a4e1400eab34ab9411ff216c75b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d155e51467f283c1e57567fe08d393093364a4e1400eab34ab9411ff216c75b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d155e51467f283c1e57567fe08d393093364a4e1400eab34ab9411ff216c75b", kill_on_drop: false }` [INFO] [stdout] 3d155e51467f283c1e57567fe08d393093364a4e1400eab34ab9411ff216c75b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48f6da5713a02d77628bb918f438c4ec03c76fb46e40bce28002be9ca1a7d973 [INFO] running `Command { std: "docker" "start" "-a" "48f6da5713a02d77628bb918f438c4ec03c76fb46e40bce28002be9ca1a7d973", 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 snowflake v1.3.0 [INFO] [stderr] Checking tinyjson v2.3.0 [INFO] [stderr] Checking day_20 v0.1.0 (/opt/rustwide/workdir/day_20) [INFO] [stderr] Checking day_10 v0.1.0 (/opt/rustwide/workdir/day_10) [INFO] [stderr] Checking day_14 v0.1.0 (/opt/rustwide/workdir/day_14) [INFO] [stderr] Checking day_15 v0.1.0 (/opt/rustwide/workdir/day_15) [INFO] [stderr] Checking day_08 v0.1.0 (/opt/rustwide/workdir/day_08) [INFO] [stderr] Checking day_01 v0.1.0 (/opt/rustwide/workdir/day_01) [INFO] [stderr] Checking day_12 v0.1.0 (/opt/rustwide/workdir/day_12) [INFO] [stderr] Checking day_16 v0.1.0 (/opt/rustwide/workdir/day_16) [INFO] [stderr] Checking day_03 v0.1.0 (/opt/rustwide/workdir/day_03) [INFO] [stderr] Checking day_21 v0.1.0 (/opt/rustwide/workdir/day_21) [INFO] [stderr] Checking day_13 v0.1.0 (/opt/rustwide/workdir/day_13) [INFO] [stderr] Checking day_02 v0.1.0 (/opt/rustwide/workdir/day_02) [INFO] [stderr] Checking day_07 v0.1.0 (/opt/rustwide/workdir/day_07) [INFO] [stderr] Checking day_06 v0.1.0 (/opt/rustwide/workdir/day_06) [INFO] [stderr] Checking day_17 v0.1.0 (/opt/rustwide/workdir/day_17) [INFO] [stderr] Checking day_11 v0.1.0 (/opt/rustwide/workdir/day_11) [INFO] [stderr] Checking day_09 v0.1.0 (/opt/rustwide/workdir/day_09) [INFO] [stderr] Checking day_05 v0.1.0 (/opt/rustwide/workdir/day_05) [INFO] [stderr] Checking id_tree v1.8.0 [INFO] [stderr] Checking day_04 v0.1.0 (/opt/rustwide/workdir/day_04) [INFO] [stderr] Checking day_22 v0.1.0 (/opt/rustwide/workdir/day_18) [INFO] [stdout] error[E0502]: cannot borrow `tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> day_18/src/main.rs:305:31 [INFO] [stdout] | [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 305 | let left_id = tree.insert(left); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> day_18/src/main.rs:306:32 [INFO] [stdout] | [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 306 | let right_id = tree.insert(right); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `tree.nodes` as mutable because it is also borrowed as immutable [INFO] [stdout] --> day_18/src/main.rs:308:33 [INFO] [stdout] | [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 308 | let self_node = tree.nodes.get_mut(node_id).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> day_18/src/main.rs:305:31 [INFO] [stdout] | [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 305 | let left_id = tree.insert(left); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `tree` as mutable because it is also borrowed as immutable [INFO] [stdout] --> day_18/src/main.rs:306:32 [INFO] [stdout] | [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 306 | let right_id = tree.insert(right); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `tree.nodes` as mutable because it is also borrowed as immutable [INFO] [stdout] --> day_18/src/main.rs:308:33 [INFO] [stdout] | [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 308 | let self_node = tree.nodes.get_mut(node_id).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `tree` because it is borrowed [INFO] [stdout] --> day_18/src/main.rs:311:31 [INFO] [stdout] | [INFO] [stdout] 298 | fn split(mut tree: Tree) -> (bool, Tree) { [INFO] [stdout] | -------- binding `tree` declared here [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrow of `tree` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 311 | return (true, tree); [INFO] [stdout] | ^^^^ move out of `tree` occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `tree` because it is borrowed [INFO] [stdout] --> day_18/src/main.rs:311:31 [INFO] [stdout] | [INFO] [stdout] 298 | fn split(mut tree: Tree) -> (bool, Tree) { [INFO] [stdout] | -------- binding `tree` declared here [INFO] [stdout] 299 | for (node, _, node_id) in tree.traverse_in_order() { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | [INFO] [stdout] | borrow of `tree` occurs here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 311 | return (true, tree); [INFO] [stdout] | ^^^^ move out of `tree` occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | } [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day_22` (bin "day_22") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day_22` (bin "day_22" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "48f6da5713a02d77628bb918f438c4ec03c76fb46e40bce28002be9ca1a7d973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48f6da5713a02d77628bb918f438c4ec03c76fb46e40bce28002be9ca1a7d973", kill_on_drop: false }` [INFO] [stdout] 48f6da5713a02d77628bb918f438c4ec03c76fb46e40bce28002be9ca1a7d973