[INFO] cloning repository https://github.com/dg01099/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/dg01099/advent-of-code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdg01099%2Fadvent-of-code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdg01099%2Fadvent-of-code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 343514051da11cac71df75215e4d230ee906b256 [INFO] checking dg01099/advent-of-code-2023/343514051da11cac71df75215e4d230ee906b256 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdg01099%2Fadvent-of-code-2023" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dg01099/advent-of-code-2023 on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dg01099/advent-of-code-2023 [INFO] finished tweaking git repo https://github.com/dg01099/advent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/dg01099/advent-of-code-2023 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dg01099/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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e92ae961e5aeab8cee5871d7e5d2954bd9232070bc4892f6058b8640e99ace02 [INFO] running `Command { std: "docker" "start" "-a" "e92ae961e5aeab8cee5871d7e5d2954bd9232070bc4892f6058b8640e99ace02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e92ae961e5aeab8cee5871d7e5d2954bd9232070bc4892f6058b8640e99ace02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e92ae961e5aeab8cee5871d7e5d2954bd9232070bc4892f6058b8640e99ace02", kill_on_drop: false }` [INFO] [stdout] e92ae961e5aeab8cee5871d7e5d2954bd9232070bc4892f6058b8640e99ace02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7a2eefbd38af2d4c9d402862c04945305e2a3dc7f595bad17af456769a481f1 [INFO] running `Command { std: "docker" "start" "-a" "e7a2eefbd38af2d4c9d402862c04945305e2a3dc7f595bad17af456769a481f1", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking day-06 v0.1.0 (/opt/rustwide/workdir/crates/day-06) [INFO] [stderr] Checking day-07 v0.1.0 (/opt/rustwide/workdir/crates/day-07) [INFO] [stderr] Checking day-10 v0.1.0 (/opt/rustwide/workdir/crates/day-10) [INFO] [stderr] Checking day-03 v0.1.0 (/opt/rustwide/workdir/crates/day-03) [INFO] [stderr] Checking day-09 v0.1.0 (/opt/rustwide/workdir/crates/day-09) [INFO] [stderr] Checking day-05 v0.1.0 (/opt/rustwide/workdir/crates/day-05) [INFO] [stderr] Checking day-04 v0.1.0 (/opt/rustwide/workdir/crates/day-04) [INFO] [stderr] Checking day-01 v0.1.0 (/opt/rustwide/workdir/crates/day-01) [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking day-08 v0.1.0 (/opt/rustwide/workdir/crates/day-08) [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking day-02 v0.1.0 (/opt/rustwide/workdir/crates/day-02) [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> crates/day-02/src/main.rs:125:85 [INFO] [stdout] | [INFO] [stdout] 124 | fn test_part_one() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 125 | let result = part_one(read_input("crates/day-02/test_input.txt".to_string())?, 12, 13, 14); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 124 ~ fn test_part_one() -> Result<(), Box> { [INFO] [stdout] 125 | let result = part_one(read_input("crates/day-02/test_input.txt".to_string())?, 12, 13, 14); [INFO] [stdout] 126 | assert_eq!(result, Some(8)); [INFO] [stdout] 127 ~ Ok(()) [INFO] [stdout] 128 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result` [INFO] [stdout] --> crates/day-02/src/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(result, Some(8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | Result [INFO] [stdout] | Option<{integer}> [INFO] [stdout] | [INFO] [stdout] note: the foreign item type `Result` doesn't implement `PartialEq>` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/result.rs:528:1 [INFO] [stdout] | [INFO] [stdout] = note: not implement `PartialEq>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> crates/day-02/src/main.rs:131:85 [INFO] [stdout] | [INFO] [stdout] 130 | fn test_part_two() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 131 | let result = part_two(read_input("crates/day-02/test_input.txt".to_string())?); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 130 ~ fn test_part_two() -> Result<(), Box> { [INFO] [stdout] 131 | let result = part_two(read_input("crates/day-02/test_input.txt".to_string())?); [INFO] [stdout] 132 | assert_eq!(result, Some(281)); [INFO] [stdout] 133 ~ Ok(()) [INFO] [stdout] 134 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result` [INFO] [stdout] --> crates/day-02/src/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | assert_eq!(result, Some(281)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | Result [INFO] [stdout] | Option<{integer}> [INFO] [stdout] | [INFO] [stdout] note: the foreign item type `Result` doesn't implement `PartialEq>` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/result.rs:528:1 [INFO] [stdout] | [INFO] [stdout] = note: not implement `PartialEq>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day-02` (bin "day-02" test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "e7a2eefbd38af2d4c9d402862c04945305e2a3dc7f595bad17af456769a481f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7a2eefbd38af2d4c9d402862c04945305e2a3dc7f595bad17af456769a481f1", kill_on_drop: false }` [INFO] [stdout] e7a2eefbd38af2d4c9d402862c04945305e2a3dc7f595bad17af456769a481f1