[INFO] cloning repository https://github.com/cruizh/advent-of-code-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cruizh/advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcruizh%2Fadvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcruizh%2Fadvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96b11012418c9cdae68c92255c83b90da274806c [INFO] checking cruizh/advent-of-code-2022 against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcruizh%2Fadvent-of-code-2022" "/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/cruizh/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/cruizh/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/cruizh/advent-of-code-2022 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cruizh/advent-of-code-2022 on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cruizh/advent-of-code-2022 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" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f9dc6a4869149f2e61b2f3b3b0e332dd7119fe8f9c1f82874e16d456976b834 [INFO] running `Command { std: "docker" "start" "-a" "0f9dc6a4869149f2e61b2f3b3b0e332dd7119fe8f9c1f82874e16d456976b834", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f9dc6a4869149f2e61b2f3b3b0e332dd7119fe8f9c1f82874e16d456976b834", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f9dc6a4869149f2e61b2f3b3b0e332dd7119fe8f9c1f82874e16d456976b834", kill_on_drop: false }` [INFO] [stdout] 0f9dc6a4869149f2e61b2f3b3b0e332dd7119fe8f9c1f82874e16d456976b834 [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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a58beff793b1ddef75604b467f6d4aea39b39c0d3ea27c42b2aa8fcc565da92b [INFO] running `Command { std: "docker" "start" "-a" "a58beff793b1ddef75604b467f6d4aea39b39c0d3ea27c42b2aa8fcc565da92b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Checking transiter v0.2.0 [INFO] [stderr] Checking num-traits v0.2.15 [INFO] [stderr] Compiling syn v2.0.20 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling num-derive v0.4.0 [INFO] [stderr] Checking advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/day02b/moves.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, PartialEq, Eq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Move` [INFO] [stdout] 5 | pub enum Move { [INFO] [stdout] | ---- `Move` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/day02b/moves.rs:4:60 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, PartialEq, Eq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Move` [INFO] [stdout] 5 | pub enum Move { [INFO] [stdout] | ---- `Move` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day08.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / vec![ [INFO] [stdout] 57 | | visible_from_left, [INFO] [stdout] 58 | | visible_from_right, [INFO] [stdout] 59 | | visible_from_top, [INFO] [stdout] 60 | | visible_from_bottom, [INFO] [stdout] 61 | | ] [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________expected `[...; _]`, found `[fn(&Vec<...>, usize, usize) -> bool; 4]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[for<'a> fn(&'a Vec>, usize, usize) -> bool {visible_from_left}; _]` [INFO] [stdout] found array `[for<'a> fn(&'a Vec>, usize, usize) -> bool; 4]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `visible_from_left as for<'a> fn(&'a Vec>, usize, usize) -> bool` [INFO] [stdout] help: the return type of this call is `[for<'a> fn(&'a Vec>, usize, usize) -> bool; 4]` due to the type of the argument passed [INFO] [stdout] --> src/bin/day08.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / vec![ [INFO] [stdout] 57 | | visible_from_left, [INFO] [stdout] 58 | | visible_from_right, [INFO] [stdout] 59 | | visible_from_top, [INFO] [stdout] 60 | | visible_from_bottom, [INFO] [stdout] 61 | | ] [INFO] [stdout] | |_________^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day08.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / vec![ [INFO] [stdout] 140 | | visibility_left, [INFO] [stdout] 141 | | visibility_right, [INFO] [stdout] 142 | | visibility_top, [INFO] [stdout] 143 | | visibility_bottom, [INFO] [stdout] 144 | | ] [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________expected `[...; _]`, found `[fn(&..., usize, usize) -> usize; 4]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[for<'a> fn(&'a Vec>, usize, usize) -> usize {visibility_left}; _]` [INFO] [stdout] found array `[for<'a> fn(&'a Vec>, usize, usize) -> usize; 4]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `visibility_left as for<'a> fn(&'a Vec>, usize, usize) -> usize` [INFO] [stdout] help: the return type of this call is `[for<'a> fn(&'a Vec>, usize, usize) -> usize; 4]` due to the type of the argument passed [INFO] [stdout] --> src/bin/day08.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / vec![ [INFO] [stdout] 140 | | visibility_left, [INFO] [stdout] 141 | | visibility_right, [INFO] [stdout] 142 | | visibility_top, [INFO] [stdout] 143 | | visibility_bottom, [INFO] [stdout] 144 | | ] [INFO] [stdout] | |_________^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day08.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / vec![ [INFO] [stdout] 57 | | visible_from_left, [INFO] [stdout] 58 | | visible_from_right, [INFO] [stdout] 59 | | visible_from_top, [INFO] [stdout] 60 | | visible_from_bottom, [INFO] [stdout] 61 | | ] [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________expected `[...; _]`, found `[fn(&Vec<...>, usize, usize) -> bool; 4]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[for<'a> fn(&'a Vec>, usize, usize) -> bool {visible_from_left}; _]` [INFO] [stdout] found array `[for<'a> fn(&'a Vec>, usize, usize) -> bool; 4]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `visible_from_left as for<'a> fn(&'a Vec>, usize, usize) -> bool` [INFO] [stdout] help: the return type of this call is `[for<'a> fn(&'a Vec>, usize, usize) -> bool; 4]` due to the type of the argument passed [INFO] [stdout] --> src/bin/day08.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / vec![ [INFO] [stdout] 57 | | visible_from_left, [INFO] [stdout] 58 | | visible_from_right, [INFO] [stdout] 59 | | visible_from_top, [INFO] [stdout] 60 | | visible_from_bottom, [INFO] [stdout] 61 | | ] [INFO] [stdout] | |_________^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day08.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / vec![ [INFO] [stdout] 140 | | visibility_left, [INFO] [stdout] 141 | | visibility_right, [INFO] [stdout] 142 | | visibility_top, [INFO] [stdout] 143 | | visibility_bottom, [INFO] [stdout] 144 | | ] [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_________expected `[...; _]`, found `[fn(&..., usize, usize) -> usize; 4]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[for<'a> fn(&'a Vec>, usize, usize) -> usize {visibility_left}; _]` [INFO] [stdout] found array `[for<'a> fn(&'a Vec>, usize, usize) -> usize; 4]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `visibility_left as for<'a> fn(&'a Vec>, usize, usize) -> usize` [INFO] [stdout] help: the return type of this call is `[for<'a> fn(&'a Vec>, usize, usize) -> usize; 4]` due to the type of the argument passed [INFO] [stdout] --> src/bin/day08.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / vec![ [INFO] [stdout] 140 | | visibility_left, [INFO] [stdout] 141 | | visibility_right, [INFO] [stdout] 142 | | visibility_top, [INFO] [stdout] 143 | | visibility_bottom, [INFO] [stdout] 144 | | ] [INFO] [stdout] | |_________^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2022` (bin "day08") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/day02b/moves.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, PartialEq, Eq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Move` [INFO] [stdout] 5 | pub enum Move { [INFO] [stdout] | ---- `Move` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/day02b/moves.rs:4:60 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, PartialEq, Eq, Copy, Clone, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_Move` [INFO] [stdout] 5 | pub enum Move { [INFO] [stdout] | ---- `Move` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2022` (bin "day08" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "a58beff793b1ddef75604b467f6d4aea39b39c0d3ea27c42b2aa8fcc565da92b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a58beff793b1ddef75604b467f6d4aea39b39c0d3ea27c42b2aa8fcc565da92b", kill_on_drop: false }` [INFO] [stdout] a58beff793b1ddef75604b467f6d4aea39b39c0d3ea27c42b2aa8fcc565da92b